fix: add missing hook creation before clone
In the case where a repository is new, the check to see if it is an empty repo during clone fails. We therefore create the initial repo via the fn-git-create-hook call when initializing the repo.
This commit is contained in:
1 parent
8faa338bd4
commit
1a320eafad
1 file changed
+1
@@ -37,6 +37,7 @@ trigger-git-git-from-directory() {
|
|||||||
suppress_output fn-git-cmd "$TMP_WORK_DIR" commit -m "Initial commit"
|
suppress_output fn-git-cmd "$TMP_WORK_DIR" commit -m "Initial commit"
|
||||||
|
|
||||||
REV="$(fn-git-cmd "$TMP_WORK_DIR" rev-parse HEAD)"
|
REV="$(fn-git-cmd "$TMP_WORK_DIR" rev-parse HEAD)"
|
||||||
|
fn-git-create-hook "$APP"
|
||||||
fn-git-clone "$APP" "$TMP_WORK_DIR" "$DEPLOY_BRANCH"
|
fn-git-clone "$APP" "$TMP_WORK_DIR" "$DEPLOY_BRANCH"
|
||||||
else
|
else
|
||||||
# update existing repo
|
# update existing repo
|
||||||
|
|||||||
Reference in new issue
Block a user