summaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-12-03 13:26:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-12-03 22:27:17 (GMT)
commitd69da76dd0bc352e358c4beb5eb3aae5588c99de (patch)
tree119d8f52478345d2e4cc191ce6cc777a65dc8d82 /git-filter-branch.sh
parentae26e7c74970281bd3597c79e44a8b54a927bbe1 (diff)
downloadgit-d69da76dd0bc352e358c4beb5eb3aae5588c99de.zip
git-d69da76dd0bc352e358c4beb5eb3aae5588c99de.tar.gz
git-d69da76dd0bc352e358c4beb5eb3aae5588c99de.tar.bz2
filter-branch: use git rev-parse -q
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 81392ad..c106f45 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