From: Steven Baltakatei Sandoval Date: Sun, 27 Feb 2022 02:30:40 +0000 (+0000) Subject: Merge branch 'develop' of https://zdv2.bktei.com/gitweb/baltakatei-exdev into develop X-Git-Tag: 0.5.0~19 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/7cfbf0133931d20c429ed349eb648a0b97cfdd09?hp=63170cb827a80c3e3fde7af59e5d93d107640a9b Merge branch 'develop' of https://zdv2.bktei.com/gitweb/baltakatei-exdev into develop --- diff --git a/unitproc/bktemp-initGitRepo b/unitproc/bktemp-initGitRepo index 911a63c..10cfe40 100644 --- a/unitproc/bktemp-initGitRepo +++ b/unitproc/bktemp-initGitRepo @@ -31,7 +31,7 @@ initGitRepo() { # arg2: repoDir # arg3: remoteName # arg4: branchName - # Version: 0.0.8 + # Version: 0.0.9 # Depends: checkURL() 0.0.2, yell(), Bash 5.0.3 # Ref/Attrib: [1]: Test for space-less alphanuemric string. https://unix.stackexchange.com/a/416120 # [2]: Test for argument count. https://stackoverflow.com/q/18568706 @@ -75,6 +75,7 @@ initGitRepo() { fi; yell "STATUS:Adding $repoURL as remote $remoteName"; git remote add "$remoteName" "$repoURL"; + git branch --set-upstream-to "$remoteName"/"$branchName" "$branchName"; yell "STATUS:Pulling branch $branchName from remote $remoteName"; git pull --ff-only "$remoteName" "$branchName"; git fetch "$remoteName";