Skip to content

Commit c983908

Browse files
committed
Added support for bare repos to deploy-git-hook
1 parent 98ecc9f commit c983908

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)