Skip to content

Commit 19627df

Browse files
committed
better cloning output
1 parent 735a5e1 commit 19627df

File tree

1 file changed

+2
-1
lines changed
  • Sources/PublicModules/PADProjectBuilder/ProjectSetup

1 file changed

+2
-1
lines changed

Sources/PublicModules/PADProjectBuilder/ProjectSetup/Git.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ internal struct Git {
4646
let command = "git clone -b \(branchOrTag) \(repository) \(targetDirectoryPath)"
4747
shell.execute(command)
4848

49-
guard fileHandler.fileExists(atPath: targetDirectoryPath) else {
49+
let directoryContents = try fileHandler.contentsOfDirectory(atPath: targetDirectoryPath)
50+
guard !directoryContents.isEmpty else {
5051
throw GitError.couldNotClone(branchOrTag: branchOrTag, repository: repository)
5152
}
5253
}

0 commit comments

Comments
 (0)