filter-branch: 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:
Miklos Vajna 2008-12-03 14:26:48 +01:00 committed by Junio C Hamano
parent ae26e7c749
commit d69da76dd0

View File

@ -256,7 +256,7 @@ while read commit parents; do
*) *)
# The commit may not have the subdirectory at all # The commit may not have the subdirectory at all
err=$(git read-tree -i -m $commit:"$filter_subdir" 2>&1) || { err=$(git read-tree -i -m $commit:"$filter_subdir" 2>&1) || {
if ! git rev-parse --verify $commit:"$filter_subdir" 2>/dev/null if ! git rev-parse -q --verify $commit:"$filter_subdir"
then then
rm -f "$GIT_INDEX_FILE" rm -f "$GIT_INDEX_FILE"
else else