Permalink
Browse files

If the hooks are installed or not is important, put it on its own lin…

…e in the output

Signed-off-by: Benjamin C Meyer <ben@meyerhome.net>
  • Loading branch information...
icefox committed Jun 19, 2010
1 parent e51e14e commit f4c3eb901856581d1441ba3b3a6698bae6fbb4f3
Showing with 5 additions and 3 deletions.
  1. +5 −3 git-hooks
View
@@ -116,12 +116,14 @@ function list_hooks
done
cat .git/hooks/pre-commit | grep 'git-hooks' > /dev/null 2> /dev/null
if [ $? = 0 ] ; then
- echo -n "Git hooks ARE installed in this repository."
+ echo "Git hooks ARE installed in this repository."
+ echo ""
else
- echo -n "Git hooks are NOT installed in this repository."
+ echo "Git hooks are NOT installed in this repository."
+ echo ""
fi
- echo ' Listing User, Project, and Global hooks:'
+ echo 'Listing User, Project, and Global hooks:'
echo '---'
for dir in `hook_dirs`; do
echo "${dir}:"

0 comments on commit f4c3eb9

Please sign in to comment.