Skip to content

Commit

Permalink
devonfw#687: fix git pull issues
Browse files Browse the repository at this point in the history
improve robustness for network issues
  • Loading branch information
hohwille committed May 31, 2022
1 parent 402d7b7 commit 3d0e634
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/src/main/resources/scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,9 @@ function doGitPullOrClone() {
fi
local branch
branch="$(git branch --show-current)"
if [ -z "$(git ls-remote --heads origin "${branch}")" ]
local branchRemoteRef
branchRemoteRef="$(git ls-remote --heads origin "${branch}")"
if [ -z "{branchRemoteRef}" ]
then
message="${message}It seems you are working on a local branch. For testing, you may continue...\n"
else
Expand Down

0 comments on commit 3d0e634

Please sign in to comment.