summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d89c1df)
raw | patch | inline | side by side (parent: d89c1df)
author | Jeff King <peff@peff.net> | |
Wed, 12 Mar 2008 21:41:39 +0000 (17:41 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 13 Mar 2008 07:57:53 +0000 (00:57 -0700) |
On some systems, 'sh' isn't very friendly. In particular,
t7003 fails on Solaris because it doesn't understand $().
Instead, use the specified SHELL_PATH to run shell code.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t7003 fails on Solaris because it doesn't understand $().
Instead, use the specified SHELL_PATH to run shell code.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history | |
git-filter-branch.sh | patch | blob | history |
diff --git a/Makefile b/Makefile
index bc46fd44f5b36efe48f43a00631f3a86b924264c..87739e7e3cae3a7892f6b9063e1c8a7b4b5505e0 100644 (file)
--- a/Makefile
+++ b/Makefile
$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
$(QUIET_GEN)$(RM) $@ $@+ && \
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
+ -e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
-e 's|@@PERL@@|$(PERL_PATH_SQ)|g' \
-e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
-e 's/@@NO_CURL@@/$(NO_CURL)/g' \
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index efef732202fb10b632b36c5080bcec2302217a7d..22b6ed4a784192bb865dff83731255b1979a1e39 100755 (executable)
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
sed -e '1,/^$/d' <../commit | \
eval "$filter_msg" > ../message ||
die "msg filter failed: $filter_msg"
- sh -c "$filter_commit" "git commit-tree" \
+ @SHELL_PATH@ -c "$filter_commit" "git commit-tree" \
$(git write-tree) $parentstr < ../message > ../map/$commit
done <../revs