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

Commit 19b48c2

Browse files
authored
Merge pull request #1115 from flisky/master
fix: retry after HasLatestLocally **success**
2 parents 238d8af + 0fd7e11 commit 19b48c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/gps/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func (sg *sourceGateway) exportVersionTo(ctx context.Context, v Version, to stri
272272
// TODO(sdboyer) It'd be better if we could check the error to see if this
273273
// actually was the cause of the problem.
274274
if err != nil && sg.srcState&sourceHasLatestLocally == 0 {
275-
if _, err = sg.require(ctx, sourceHasLatestLocally); err != nil {
275+
if _, err = sg.require(ctx, sourceHasLatestLocally); err == nil {
276276
err = sg.suprvsr.do(ctx, sg.src.upstreamURL(), ctExportTree, func(ctx context.Context) error {
277277
return sg.src.exportRevisionTo(ctx, r, to)
278278
})

0 commit comments

Comments
 (0)