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:

committed by
Junio C Hamano

parent
d69da76dd0
commit
a86e8c1cfc
@ -20,7 +20,7 @@ while read dangling type sha1
|
|||||||
do
|
do
|
||||||
case "$dangling" in
|
case "$dangling" in
|
||||||
dangling)
|
dangling)
|
||||||
if git rev-parse --verify "$sha1^0" >/dev/null 2>/dev/null
|
if git rev-parse -q --verify "$sha1^0" >/dev/null
|
||||||
then
|
then
|
||||||
dir="$laf/commit"
|
dir="$laf/commit"
|
||||||
git show-branch "$sha1"
|
git show-branch "$sha1"
|
||||||
|
Reference in New Issue
Block a user