We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de1c13b + 1d9460d commit ed35ae8Copy full SHA for ed35ae8
lib/load-configs.sh
@@ -69,7 +69,7 @@ if [ -z "$GF_BASE_REMOTE" ]; then
69
fi
70
71
if [ -z "$GF_BASE_BRANCH" ]; then
72
- GF_BASE_BRANCH="$(git symbolic-ref "refs/remotes/${GF_BASE_REMOTE}/HEAD" | sed "s@^refs/remotes/${GF_BASE_REMOTE}/@@")"
+ GF_BASE_BRANCH="$(git symbolic-ref -q "refs/remotes/${GF_BASE_REMOTE}/HEAD" || echo -n "master" | sed "s@^refs/remotes/${GF_BASE_REMOTE}/@@")"
73
export GF_BASE_BRANCH
74
75
0 commit comments