Skip to content

Commit 4050de2

Browse files
committed
[RepositoryManager] Pending is unavailable
Handles can be in pending state for e.g. if an operation was cancelled using sigint. We just need to re-clone in those cases.
1 parent bbac385 commit 4050de2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/SourceControl/RepositoryManager.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,7 @@ public class RepositoryManager {
244244
return handle
245245
})
246246

247-
case .pending:
248-
precondition(false, "This should never have been called")
249-
return
250-
251-
case .uninitialized, .error:
247+
case .pending, .uninitialized, .error:
252248
// Change the state to pending.
253249
handle.status = .pending
254250
let repositoryPath = self.path.appending(handle.subpath)

0 commit comments

Comments
 (0)