Skip to content

Commit 8e36cd0

Browse files
committed
Merge pull request #70 from jcpunk/bare-repo
Added support for bare repos to deploy-git-hook
2 parents e211252 + c983908 commit 8e36cd0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

deploy-git-hook

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ if [ -f "${GIT_REPO}/.git" ]; then
101101
GIT_REPO="$(cd "${GIT_REPO}" ; cd "${SUBMODULE_REPO}" ; pwd)"
102102
elif [ "${BITBUCKET_REPO}" = "1" ]; then
103103
GIT_REPO="${GIT_REPO}"
104+
elif [ -f "${GIT_REPO}/hooks" ]; then
105+
# This is for bare repos
106+
GIT_REPO="${GIT_REPO}"
104107
else
105108
GIT_REPO="${GIT_REPO}/.git"
106109
fi

update

100644100755
File mode changed.

0 commit comments

Comments
 (0)