Skip to content

Commit

Permalink
chore: make git clone idempotent so that it retries properly (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexand committed Jan 27, 2021
1 parent a52b67a commit 4c9d7d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system-test/integration_test.go
Expand Up @@ -84,7 +84,10 @@ node -v
NODEDIR=$(dirname $(dirname $(which node)))
# Install agent
retry git clone {{.Repo}}
git_clone_repo() {
rm -rf cloud-profiler-nodejs && git clone {{.Repo}}
}
retry git_clone_repo
cd cloud-profiler-nodejs
retry git fetch origin {{if .PR}}pull/{{.PR}}/head{{else}}{{.Branch}}{{end}}:pull_branch
git checkout pull_branch
Expand Down

0 comments on commit 4c9d7d0

Please sign in to comment.