diff --git a/Source/CarthageKit/Git.swift b/Source/CarthageKit/Git.swift index 2de20e4e9f..677d7d7fae 100644 --- a/Source/CarthageKit/Git.swift +++ b/Source/CarthageKit/Git.swift @@ -335,6 +335,7 @@ internal func gitmodulesEntriesInRepository( .flatMap(.concat) { value in parseConfigEntries(value, keyPrefix: "submodule.", keySuffix: ".path") } .flatMap(.concat) { name, path -> SignalProducer<(name: String, path: String, url: GitURL), CarthageError> in return launchGitTask(baseArguments + [ "--get", "submodule.\(name).url" ], repositoryFileURL: repositoryFileURL) + .map { $0.stripping(suffix: "\0") } .map { urlString in (name: name, path: path, url: GitURL(urlString)) } } }