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

Commit 35f4100

Browse files
committed
Make git commands nosier. This should prevent us from thinking they have died when they haven't.
1 parent 911cd22 commit 35f4100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/gps/vcs_repo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func newVcsLocalErrorOr(msg string, err error, out string) error {
8080
}
8181

8282
func (r *gitRepo) get(ctx context.Context) error {
83-
out, err := runFromCwd(ctx, "git", "clone", "--recursive", r.Remote(), r.LocalPath())
83+
out, err := runFromCwd(ctx, "git", "clone", "--recursive", "-v", "--progress", r.Remote(), r.LocalPath())
8484
if err != nil {
8585
return newVcsRemoteErrorOr("unable to get repository", err, string(out))
8686
}
@@ -98,7 +98,7 @@ func (r *gitRepo) fetch(ctx context.Context) error {
9898
}
9999

100100
func (r *gitRepo) updateVersion(ctx context.Context, v string) error {
101-
out, err := runFromRepoDir(ctx, r, "git", "checkout", v)
101+
out, err := runFromRepoDir(ctx, r, "git", "checkout", "--progress", v)
102102
if err != nil {
103103
return newVcsLocalErrorOr("Unable to update checked out version", err, string(out))
104104
}

0 commit comments

Comments
 (0)