diff --git a/bin/git-release b/bin/git-release index a5ff60b..bf9e3a3 100755 --- a/bin/git-release +++ b/bin/git-release @@ -2,9 +2,18 @@ hook() { local hook=.git/hooks/$1.sh + # compat without extname + if test ! -f $hook; then + hook=.git/hooks/$1 + fi + if test -f $hook; then echo "... $1" - . $hook + if test -x $hook; then + $hook + else + . $hook + fi fi }