lost-found: use git rev-parse -q
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Miklos Vajna committed
Dec 3, 2008 at 14:26 UTC
a86e8c1cfcb576d2d5b3a3499acc48684280dccb
1 file changed
+1
-1
git-lost-found.sh
+1
-1
@@ -20,7 +20,7 @@ while read dangling type sha1
20
do
21
case "$dangling" in
22
dangling)
23
- if git rev-parse --verify "$sha1^0" >/dev/null 2>/dev/null
23
+ if git rev-parse -q --verify "$sha1^0" >/dev/null
24
then
25
dir="$laf/commit"
26
git show-branch "$sha1"