lost-found: use git rev-parse -q
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d69da76dd0
commit
a86e8c1cfc
@ -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…
Reference in New Issue
Block a user