##// END OF EJS Templates
Add git-hooks install script. Update README.md
Blake Griffith -
Show More
@@ -0,0 +1,9 b''
1 #!/usr/bin/env bash
2
3 DOTGIT=`git rev-parse --git-dir`
4 TOPLEVEL=`git rev-parse --show-toplevel`
5 TO=${DOTGIT}/hooks
6 FROM=${TOPLEVEL}/git-hooks
7
8 ln -s ${FROM}/post-checkout ${TO}/post-checkout
9 ln -s ${FROM}/post-merge ${TO}/post-merge
@@ -6,9 +6,4 b' For now, we just have `post-checkout` and `post-merge`,'
6 both of which just update submodules,
6 both of which just update submodules,
7 so make sure that you have a fully synced repo whenever you checkout or pull.
7 so make sure that you have a fully synced repo whenever you checkout or pull.
8
8
9 To use these hooks, you can symlink or copy them to your `.git/hooks` directory.
9 To use these hooks, run `./install-hooks.sh`.
10 In `.git/hooks`, do:
11
12 ln -s ../../git-hooks/post-checkout post-checkout
13 ln -s ../../git-hooks/post-merge post-merge
14
General Comments 0
You need to be logged in to leave comments. Login now