From 0280d886991613eb2e73d8e95bfb6b1c1dee4c80 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sat, 18 Feb 2023 22:15:27 +0200 Subject: [PATCH] Add branch to push command. --- src/octozipo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octozipo b/src/octozipo index 4d65ed8..754b9ed 100755 --- a/src/octozipo +++ b/src/octozipo @@ -420,12 +420,12 @@ setGitCommit() { setPushChanges() { # If the DRY variable is set to true, print a message indicating that this is a dry run and no changes will be made. if $DRY; then - _echo "[dry run] git push" + _echo "[dry run] git push origin ${VDM_REPO_BRANCH}" _echo "[dry run] git push --tags" else # If the DRY variable is not set, try to push the changes and tags to the remote repository. # Redirect stdout and stderr to /dev/null to suppress output. - git push >/dev/null 2>&1 || return 1 + git push origin "${VDM_REPO_BRANCH}" >/dev/null 2>&1 || return 1 git push --tags >/dev/null 2>&1 || return 1 fi