Skip to content

Commit

Permalink
Merge pull request Carthage#2252 from iv-mexx/fix/stringTerminator
Browse files Browse the repository at this point in the history
Strip string (null) terminator (https://en.wikipedia.org/wiki/Null_character) from result of git command
  • Loading branch information
jdhealy authored Nov 16, 2017
2 parents 8915f54 + d0b5f89 commit d14a884
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/CarthageKit/Git.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)) }
}
}
Expand Down

0 comments on commit d14a884

Please sign in to comment.