Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Use expensive timeout for git checkout
Browse files Browse the repository at this point in the history
This can be slow on large repos, but also often seems to be particularly
slow on windows. Adding --progress would help with this, but we probably
need to sniff versions for that.

Fixes #948
  • Loading branch information
sdboyer committed Aug 5, 2017
1 parent 9e16c38 commit ea735f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/gps/vcs_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (r *gitRepo) fetch(ctx context.Context) error {
}

func (r *gitRepo) updateVersion(ctx context.Context, v string) error {
out, err := runFromRepoDir(ctx, r, defaultCmdTimeout, "git", "checkout", v)
out, err := runFromRepoDir(ctx, r, expensiveCmdTimeout, "git", "checkout", v)
if err != nil {
return newVcsLocalErrorOr("Unable to update checked out version", err, string(out))
}
Expand Down

0 comments on commit ea735f9

Please sign in to comment.