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 735a5e1 commit 19627dfCopy full SHA for 19627df
Sources/PublicModules/PADProjectBuilder/ProjectSetup/Git.swift
@@ -46,7 +46,8 @@ internal struct Git {
46
let command = "git clone -b \(branchOrTag) \(repository) \(targetDirectoryPath)"
47
shell.execute(command)
48
49
- guard fileHandler.fileExists(atPath: targetDirectoryPath) else {
+ let directoryContents = try fileHandler.contentsOfDirectory(atPath: targetDirectoryPath)
50
+ guard !directoryContents.isEmpty else {
51
throw GitError.couldNotClone(branchOrTag: branchOrTag, repository: repository)
52
}
53
0 commit comments