diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-08-10 15:50:53 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-08-10 15:50:53 +0200 |
commit | 1778b53f1281306a7c35c56fb72335e2a070f925 (patch) | |
tree | 6d498490c525d332b4f9b8b0bc462bb386fb12de /git-tools/hooks/install | |
parent | e1328e87ce23245dbd55a08fbaf3d48e957a6777 (diff) | |
parent | e17ffa01e6f536b0868106405993361f1d978706 (diff) | |
download | forums-1778b53f1281306a7c35c56fb72335e2a070f925.tar forums-1778b53f1281306a7c35c56fb72335e2a070f925.tar.gz forums-1778b53f1281306a7c35c56fb72335e2a070f925.tar.bz2 forums-1778b53f1281306a7c35c56fb72335e2a070f925.tar.xz forums-1778b53f1281306a7c35c56fb72335e2a070f925.zip |
Merge branch 'task/cs278/git-tools' into develop-olympus
* task/cs278/git-tools:
[task/git-tools] Ignore git commit message comments
[task/git-tools] Adjust the hook to enforce that a ticket is always mentioned
[task/git-tools] Vastly expanded commit-msg hook.
[task/git-tools] Beginnings of a syntax checking hook.
[task/git-tools] Append ticket identifier to commit message prior to editing.
[task/git-tools] add install and uninstall scripts for hooks
[task/git-tools] move ticket id appending to commit-msg hook
[task/git-tools] append ticket id to git log message
Diffstat (limited to 'git-tools/hooks/install')
-rwxr-xr-x | git-tools/hooks/install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/git-tools/hooks/install b/git-tools/hooks/install new file mode 100755 index 0000000000..a42c55a769 --- /dev/null +++ b/git-tools/hooks/install @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Script to install the git hooks +# by symlinking them into the .git/hooks directory +# +# Usage (from within git-tools/hooks): +# ./install + +dir=$(dirname $0) + +for file in $(ls $dir) +do + if [ $file != "install" ] && [ $file != "uninstall" ] + then + ln -s "../../git-tools/hooks/$file" "$dir/../../.git/hooks/$file" + fi +done |