Skip to content

Commit

Permalink
Ignore empty arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Nov 8, 2018
1 parent 3cee69a commit ac13633
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ internal class ShellGitInfoExtractor(val project: Project) : GitInfoExtractor {
return text.lines().asSequence().map { it.trim() }.filter { it.isNotBlank() }.toList()
}

private fun String.execute(): ProcessResult = split(" ").execute()
private fun String.execute(): ProcessResult = trim().split(" ").execute()

private fun List<String>.execute(): ProcessResult {
val out = ByteArrayOutputStream()
Expand Down

0 comments on commit ac13633

Please sign in to comment.