@matheusbsbs / matheus-bagliano / commits / d69da76dd0
Fork 0

filter-branch: use git rev-parse -q

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Miklos Vajna committed Dec 3, 2008 at 14:26 UTC d69da76dd0bc352e358c4beb5eb3aae5588c99de
1 file changed +1 -1
git-filter-branch.sh
+1 -1
@@ -256,7 +256,7 @@ while read commit parents; do
256 *)
257 # The commit may not have the subdirectory at all
258 err=$(git read-tree -i -m $commit:"$filter_subdir" 2>&1) || {
259 - if ! git rev-parse --verify $commit:"$filter_subdir" 2>/dev/null
259 + if ! git rev-parse -q --verify $commit:"$filter_subdir"
260 then
261 rm -f "$GIT_INDEX_FILE"
262 else