From: Steven Baltakatei Sandoval Date: Sun, 31 Oct 2021 03:41:53 +0000 (+0000) Subject: Merge branch 'develop' of https://zdv2.bktei.com/gitweb/baltakatei-exdev into develop X-Git-Tag: 0.5.0~39 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/251de9d5df6f8e80faa0dbafa0f43985d05387a7?hp=5113c9ac659baf9aa3612e31e4d0aaf7d39ea62d Merge branch 'develop' of https://zdv2.bktei.com/gitweb/baltakatei-exdev into develop --- diff --git a/unitproc/bktemp-initGitRepo b/unitproc/bktemp-initGitRepo index 3e4b566..911a63c 100644 --- a/unitproc/bktemp-initGitRepo +++ b/unitproc/bktemp-initGitRepo @@ -31,7 +31,7 @@ initGitRepo() { # arg2: repoDir # arg3: remoteName # arg4: branchName - # Version: 0.0.7 + # Version: 0.0.8 # 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 @@ -77,6 +77,7 @@ initGitRepo() { git remote add "$remoteName" "$repoURL"; yell "STATUS:Pulling branch $branchName from remote $remoteName"; git pull --ff-only "$remoteName" "$branchName"; + git fetch "$remoteName"; unset repoURL repoDir remoteName branchName; popd || exit 1; #==END create and populate git repository==