summaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-08-08 12:24:16 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-08-08 12:24:16 -0700
commitfca64c80fb61147215de89c2f9391ea0f5576b35 (patch)
treec96e6ba8440ee4a5865381a550c47f0766a3d276 /git-filter-branch.sh
parentMerge branch 'tc/minix' (diff)
parentfilter-branch: Export variable `workdir' for --commit-filter (diff)
downloadtgif-fca64c80fb61147215de89c2f9391ea0f5576b35.tar.xz
Merge branch 'maint'
* maint: filter-branch: Export variable `workdir' for --commit-filter Documentation/Makefile: add *.pdf to `clean' target Documentation: ignore *.pdf files
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 962a93b586..6b5f2251b6 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