diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-05-16 16:36:31 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-05-18 14:42:17 +0000 |
commit | 2df8a8cf465703890754a37682adee8cd7342bac (patch) | |
tree | 138e9750353881c5ad7b4afa089375f65a819734 /share | |
parent | 2aa3131bef6444a800f6e6259cecf44851eb0454 (diff) |
Fix vcsSubversion test on macOS
The output of the repoState property contains additional whitespace
for subversion case on macOS.
Make sure to trim the output of any whitespace.
Change-Id: Idb17361dc4e7fb95a18c3e789877347e789e5575
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r-- | share/qbs/modules/vcs/vcs-module.qbs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/vcs/vcs-module.qbs b/share/qbs/modules/vcs/vcs-module.qbs index 2c2cc2c37..ee7a34582 100644 --- a/share/qbs/modules/vcs/vcs-module.qbs +++ b/share/qbs/modules/vcs/vcs-module.qbs @@ -117,7 +117,7 @@ Module { proc.setWorkingDirectory(theRepoDir); proc.exec(tool, ["info", "-r", "HEAD", "--show-item", "revision", "--no-newline"], true); - repoState = proc.readStdOut(); + repoState = proc.readStdOut().trim(); if (repoState) found = true; } finally { |