Skip to content

Commit

Permalink
Allow usage of private golang repositories (GoogleCloudPlatform#500)
Browse files Browse the repository at this point in the history
* Set git config value

* Fix spacing

* Cleaning up

* New line at the end
  • Loading branch information
mlesar authored and imjasonh committed Jun 11, 2019
1 parent 09cf00a commit 36499d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/prepare_workspace.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ prepare_workspace() {
# remember, and sometimes this function changes directory.
export WORKSPACE="$PWD"

# If $GIT_CONFIG_VAL is set, set global git config value
if [[ "$GIT_CONFIG_VAL" ]]; then
eval "git config --global $GIT_CONFIG_VAL"
fi

# If $GOPATH is set, do nothing. The user has already set up the workspace.
if [[ "$GOPATH" ]]; then
# We allow relative paths here because of how the Cloud Build service
Expand Down

0 comments on commit 36499d1

Please sign in to comment.