File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -304,23 +304,19 @@ public class RepositoryManager {
304
304
let lock = FileLock ( name: handle. repository. basename, cachePath: self . path)
305
305
// FIXME: Workaround for `FileLock` only working on `LocaFileSystem`
306
306
if localFileSystem. exists ( self . path) {
307
- try lock. withLock {
308
- try lock. withLock {
309
- try provider. cloneCheckout (
310
- repository: handle. repository,
311
- at: path. appending ( handle. subpath) ,
312
- to: destinationPath,
313
- editable: editable)
314
- }
315
- }
316
- } else {
317
307
try lock. withLock {
318
308
try provider. cloneCheckout (
319
309
repository: handle. repository,
320
310
at: path. appending ( handle. subpath) ,
321
311
to: destinationPath,
322
312
editable: editable)
323
313
}
314
+ } else {
315
+ try provider. cloneCheckout (
316
+ repository: handle. repository,
317
+ at: path. appending ( handle. subpath) ,
318
+ to: destinationPath,
319
+ editable: editable)
324
320
}
325
321
}
326
322
You can’t perform that action at this time.
0 commit comments