X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-filter-branch.sh;h=6b5f2251b6b5f0b9a43e16296c390e991c6fa13a;hb=31fd8d72f2eb82c2b6d8d450ee4e13a3925291c3;hp=962a93b586571eb6fc60aae53c77f6e6b9fb281f;hpb=ac13e7c514d6790cc59041545f26b3f5da543b25;p=git.git diff --git a/git-filter-branch.sh b/git-filter-branch.sh index 962a93b58..6b5f2251b 100755 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -363,7 +363,7 @@ while read commit parents; do sed -e '1,/^$/d' <../commit | \ eval "$filter_msg" > ../message || die "msg filter failed: $filter_msg" - @SHELL_PATH@ -c "$filter_commit" "git commit-tree" \ + workdir=$workdir @SHELL_PATH@ -c "$filter_commit" "git commit-tree" \ $(git write-tree) $parentstr < ../message > ../map/$commit || die "could not write rewritten commit" done <../revs