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:
@@ -37,6 +37,7 @@ trigger-git-git-from-directory() {
|
||||
suppress_output fn-git-cmd "$TMP_WORK_DIR" commit -m "Initial commit"
|
||||
|
||||
REV="$(fn-git-cmd "$TMP_WORK_DIR" rev-parse HEAD)"
|
||||
fn-git-create-hook "$APP"
|
||||
fn-git-clone "$APP" "$TMP_WORK_DIR" "$DEPLOY_BRANCH"
|
||||
else
|
||||
# update existing repo
|
||||
|
||||
Reference in New Issue
Block a user