summaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-01-29 00:10:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-01-29 00:10:12 (GMT)
commita2ec9484c1517305e2e28d64d8d77642f05e9a02 (patch)
tree7e6486c835da8f8a676e2be9f9f03652e2882a45 /git-filter-branch.sh
parentd10e2cb9d0299a26f43d57dd5bdcf2b3f86a30b3 (diff)
parent1dc413ebe52bd5dffed63d69a0a239b7fb6ef699 (diff)
downloadgit-a2ec9484c1517305e2e28d64d8d77642f05e9a02.zip
git-a2ec9484c1517305e2e28d64d8d77642f05e9a02.tar.gz
git-a2ec9484c1517305e2e28d64d8d77642f05e9a02.tar.bz2
Merge branch 'jk/filter-branch-no-index'
A recent optimization to filter-branch in v2.7.0 introduced a regression when --prune-empty filter is used, which has been corrected. * jk/filter-branch-no-index: filter-branch: resolve $commit^{tree} in no-index case
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 98f1779..86b2ff1 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -404,7 +404,7 @@ while read commit parents; do
then
tree=$(git write-tree)
else
- tree="$commit^{tree}"
+ tree=$(git rev-parse "$commit^{tree}")
fi
workdir=$workdir @SHELL_PATH@ -c "$filter_commit" "git commit-tree" \
"$tree" $parentstr < ../message > ../map/$commit ||