We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3fed83 commit e0e5c87Copy full SHA for e0e5c87
Sources/SourceControl/RepositoryManager.swift
@@ -283,7 +283,16 @@ public class RepositoryManager {
283
editable: Bool
284
) throws {
285
let lock = FileLock(name: handle.repository.basename, cachePath: self.path)
286
- try lock.withLock {
+ // FIXME: Workaround for `FileLock` only working on `LocaFileSystem`
287
+ if localFileSystem.exists(self.path) {
288
+ try lock.withLock {
289
+ try provider.cloneCheckout(
290
+ repository: handle.repository,
291
+ at: path.appending(handle.subpath),
292
+ to: destinationPath,
293
+ editable: editable)
294
+ }
295
+ } else {
296
try provider.cloneCheckout(
297
repository: handle.repository,
298
at: path.appending(handle.subpath),
0 commit comments