From a8302e6c74aada5270c2ccd75083aab643e40e65 Mon Sep 17 00:00:00 2001 From: roleyfoley Date: Wed, 4 Oct 2023 18:36:17 +1100 Subject: [PATCH] fix: set dir for git push --- cli/saveCMDBRepos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/saveCMDBRepos.sh b/cli/saveCMDBRepos.sh index eac5bceb..7072e683 100755 --- a/cli/saveCMDBRepos.sh +++ b/cli/saveCMDBRepos.sh @@ -180,7 +180,7 @@ function commit_tag_push() { debug "Pushing the repo upstream" if git -C "${repo_dir}" symbolic-ref -q HEAD; then - if git push --tags ${repo_remote} ${repo_branch}; then + if git -C "${repo_dir}" push --tags ${repo_remote} ${repo_branch}; then REPO_PUSHED=true break else