]> git.droids-corp.org - git-central.git/commitdiff
Haven't really been using these.
authorStephen Haberman <stephen@exigencecorp.com>
Fri, 22 Aug 2008 19:34:01 +0000 (14:34 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Fri, 22 Aug 2008 19:34:01 +0000 (14:34 -0500)
install-cbas-client-hooks.sh [deleted file]
make-cbas-client-hooks.sh [deleted file]

diff --git a/install-cbas-client-hooks.sh b/install-cbas-client-hooks.sh
deleted file mode 100644 (file)
index 5f81087..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-rm .git/hooks/*
-
-cat >.git/hooks/commit-msg <<'FOO'
-#!/bin/sh
-
-grep -i '\(\(re\|refs\|qa\) #[0-9]\+\)\|\(no ticket\)' "$1" > /dev/null
-
-if [ $? -ne 0 ]
-then
-       echo "Please reference a ticket"
-       exit 1
-fi
-FOO
-
-cat >.git/hooks/post-checkout <<'FOO'
-#!/bin/bash
-
-# The hook is given three parameters: the ref of the previous HEAD, the ref of
-# the new HEAD (which may or may not have changed), and a flag indicating
-# whether the checkout was a branch checkout (changing branches, flag=1) or a
-# file checkout (retrieving a file from the index, flag=0).
-
-branch=$(git symbolic-ref HEAD)
-branch=${branch/refs\/heads\//}
-
-git config --list | grep "branch.${branch}.rebase" > /dev/null
-if [ $? -ne 0 ] ; then
-       git config --add "branch.${branch}.rebase" true
-fi
-FOO
-
diff --git a/make-cbas-client-hooks.sh b/make-cbas-client-hooks.sh
deleted file mode 100644 (file)
index 573791f..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-cat >install-cbas-client-hooks.sh <<EOF
-#!/bin/sh
-
-rm .git/hooks/*
-
-cat >.git/hooks/commit-msg <<'FOO'
-$(cat client/commit-msg-trac)
-FOO
-
-cat >.git/hooks/post-checkout <<'FOO'
-$(cat client/post-checkout-rebase)
-FOO
-
-EOF
-