clone: the given repository dir should be relative to $PWD
[gitweb.git] / templates / hooks--pre-applypatch
index a54751600ef85cce0480a2edfc43621104becd8c..5f56ce8053a40919cbf02010e29f185b6f9d8784 100644 (file)
@@ -8,6 +8,7 @@
 #
 # To enable this hook, make this file executable.
 
+. git-sh-setup
 test -x "$GIT_DIR/hooks/pre-commit" &&
        exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
 :