X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-filter-branch.sh;h=37e044db40bb89470bb64a4108c86d5173e03b5a;hb=6d2bf96e550731499c73731e5623017d193f837f;hp=b90d3df3a7db97dbc8a16e9e73b705d52bf8fd20;hpb=00f39fc9955c22b6a8a2702b88509647e65291ce;p=git.git diff --git a/git-filter-branch.sh b/git-filter-branch.sh index b90d3df3a..37e044db4 100755 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -430,7 +430,7 @@ if [ "$filter_tag_name" ]; then if [ "$type" = "tag" ]; then # Dereference to a commit sha1t="$sha1" - sha1="$(git rev-parse "$sha1"^{commit} 2>/dev/null)" || continue + sha1="$(git rev-parse -q "$sha1"^{commit})" || continue fi [ -f "../map/$sha1" ] || continue