aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-06-26 13:38:50 +0200
committerChris Smith <toonarmy@phpbb.com>2010-07-12 02:04:29 +0100
commit14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba (patch)
treeebb4700c81c7d1c0413836b7a041938d052fc2f1 /git-tools/hooks/uninstall
parent[task/git-tools] move ticket id appending to commit-msg hook (diff)
downloadphpbb-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.tar.gz
phpbb-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.tar.bz2
phpbb-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.zip
[task/git-tools] add install and uninstall scripts for hooks
PHPBB3-9769
Diffstat (limited to 'git-tools/hooks/uninstall')
-rwxr-xr-xgit-tools/hooks/uninstall16
1 files changed, 16 insertions, 0 deletions
diff --git a/git-tools/hooks/uninstall b/git-tools/hooks/uninstall
new file mode 100755
index 0000000000..1b3b7fd2c9
--- /dev/null
+++ b/git-tools/hooks/uninstall
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# Script to uninstall the git hooks
+#
+# Usage (from within git-tools/hooks):
+# ./uninstall
+
+dir=$(dirname $0)
+
+for file in $(ls $dir)
+do
+ if [ $file != "install" ] && [ $file != "uninstall" ]
+ then
+ rm -f "$dir/../../.git/hooks/$file"
+ fi
+done