From: Miklos Vajna Date: Wed, 3 Dec 2008 13:26:48 +0000 (+0100) Subject: filter-branch: use git rev-parse -q X-Git-Tag: v1.6.1-rc2~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d69da76dd0bc352e358c4beb5eb3aae5588c99de;p=git.git filter-branch: use git rev-parse -q Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- diff --git a/git-filter-branch.sh b/git-filter-branch.sh index 81392add0..c106f45af 100755 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -256,7 +256,7 @@ while read commit parents; do *) # The commit may not have the subdirectory at all 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 rm -f "$GIT_INDEX_FILE" else