Code

pre-commit.sample: don't print incidental SHA1
[git.git] / git-filter-branch.sh
index b90d3df3a7db97dbc8a16e9e73b705d52bf8fd20..37e044db40bb89470bb64a4108c86d5173e03b5a 100755 (executable)
@@ -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