Skip to content

Commit 829a9a2

Browse files
authored
fix problem with slash in branch name on Windows (#295)
1 parent bd0d5f0 commit 829a9a2

File tree

1 file changed

+1
-2
lines changed
  • affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector

1 file changed

+1
-2
lines changed

affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/GitClient.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ private class RealCommandRunner(
156156
override fun executeAndParse(command: String): List<String> {
157157
return execute(command).toOsSpecificLineEnding()
158158
.split(System.lineSeparator())
159-
.map { it.toOsSpecificPath() }
160159
.filterNot { it.isEmpty() }
161160
}
162161

@@ -205,7 +204,7 @@ internal abstract class GitChangedFilesSource :
205204
} else {
206205
"$CHANGED_FILES_CMD_PREFIX $top..$sha"
207206
}
208-
)
207+
).map { it.toOsSpecificPath() }
209208

210209
return parameters.ignoredFiles.orNull
211210
.orEmpty()

0 commit comments

Comments
 (0)