X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-filter-branch.sh;h=37e044db40bb89470bb64a4108c86d5173e03b5a;hb=d183663785c0d78f73b31ad43fa57b0742d2a95c;hp=b90d3df3a7db97dbc8a16e9e73b705d52bf8fd20;hpb=9824a388e53ba0951e38f246038fa0ef6fda3397;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