Permalink
Browse files

Added support for bare repos to deploy-git-hook

  • Loading branch information...
jcpunk committed Mar 23, 2016
1 parent 98ecc9f commit c983908d78120199418f531c372c99b9ee48ec02
Showing with 3 additions and 0 deletions.
  1. +3 −0 deploy-git-hook
  2. 0 update
View
@@ -101,6 +101,9 @@ if [ -f "${GIT_REPO}/.git" ]; then
GIT_REPO="$(cd "${GIT_REPO}" ; cd "${SUBMODULE_REPO}" ; pwd)"
elif [ "${BITBUCKET_REPO}" = "1" ]; then
GIT_REPO="${GIT_REPO}"
elif [ -f "${GIT_REPO}/hooks" ]; then
# This is for bare repos
GIT_REPO="${GIT_REPO}"
else
GIT_REPO="${GIT_REPO}/.git"
fi
View
0 update 100644 → 100755
No changes.

0 comments on commit c983908

Please sign in to comment.