aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-hooks3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-hooks b/git-hooks
index 0acc6e3..6f08899 100755
--- a/git-hooks
+++ b/git-hooks
@@ -114,8 +114,7 @@ git-hooks run "$0" "$@"' > "${file}"
function list_hooks
{
GITDIR=`git rev-parse --git-dir`
- cd $GITDIR
- cat hooks/pre-commit 2> /dev/null | grep 'git-hooks' > /dev/null 2> /dev/null
+ cat $GITDIR/hooks/pre-commit 2> /dev/null | grep 'git-hooks' > /dev/null 2> /dev/null
if [ $? = 0 ] ; then
echo "Git hooks ARE installed in this repository."
echo ""