Browse Source

lost-found: use git rev-parse -q

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Miklos Vajna 16 years ago committed by Junio C Hamano
parent
commit
a86e8c1cfc
  1. 2
      git-lost-found.sh

2
git-lost-found.sh

@ -20,7 +20,7 @@ while read dangling type sha1 @@ -20,7 +20,7 @@ while read dangling type sha1
do
case "$dangling" in
dangling)
if git rev-parse --verify "$sha1^0" >/dev/null 2>/dev/null
if git rev-parse -q --verify "$sha1^0" >/dev/null
then
dir="$laf/commit"
git show-branch "$sha1"

Loading…
Cancel
Save