Skip to content

Commit

Permalink
Mercurial: Also check that the vcsRevision is not blank
Browse files Browse the repository at this point in the history
  • Loading branch information
pnowakowski committed Dec 4, 2017
1 parent 772dea4 commit 4e0886c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion downloader/src/main/kotlin/vcs/Mercurial.kt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ object Mercurial : VersionControlSystem() {
// We cannot detect beforehand if the Large Files extension would be required, so enable it by default.
val extensionsList = mutableListOf(EXTENSION_LARGE_FILES)

if (vcsRevision != null) {
if (vcsRevision != null && vcsRevision.isNotBlank()) {
revisionCmdArgs.add("-r")
revisionCmdArgs.add(vcsRevision)
}
Expand Down

0 comments on commit 4e0886c

Please sign in to comment.