[PATCH 0/2] Template cleanups
- From
Ben Walton <bwalton@artsci.utoronto.ca>
- Date
- Mar 20, 2010, 14:48 UTC
- Message-ID
- <1269096489-12750-1-git-send-email-bwalton@artsci.utoronto.ca>
Hi All,
I noticed that the template sample hooks were a) using shell conventions that may not work under /bin/sh on all platforms and b) using the old git-foo calling conventions in some, but not all, cases. The following two patches rectify this.
The build system will now substitute SHELL_PATH and PERL_PATH into files under templates/ so that the templates use the same tools as the rest of git.
Ben Walton (2): Make templates honour SHELL_PATH and PERL_PATH Modernize git calling conventions in hook templates
Makefile | 2 +- templates/Makefile | 17 +++++++++++++++-- templates/hooks--commit-msg.sample | 2 +- templates/hooks--post-update.sample | 2 +- templates/hooks--pre-commit.sample | 4 ++-- templates/hooks--pre-rebase.sample | 20 ++++++++++---------- templates/hooks--prepare-commit-msg.sample | 6 +++--- templates/hooks--update.sample | 4 ++-- templates/info--exclude | 2 +- 9 files changed, 36 insertions(+), 23 deletions(-)