Skip to content

Commit db4233e

Browse files
authored
remote: patch default timeout for List (go-git#321)
It looks a test value was shipped breaking a lot of the usage of the library.
1 parent 720c192 commit db4233e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: remote.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ func (r *Remote) ListContext(ctx context.Context, o *ListOptions) (rfs []*plumbi
10851085
}
10861086

10871087
func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) {
1088-
ctx, cancel := context.WithTimeout(context.Background(), 600*time.Millisecond)
1088+
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
10891089
defer cancel()
10901090
return r.ListContext(ctx, o)
10911091
}

0 commit comments

Comments
 (0)