diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2020-08-19 15:55:06 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2020-08-19 15:55:06 +0000 |
commit | 2fba71ef650d242882147ff145cd6afa16b9d16f (patch) | |
tree | 6eae28fffcaeca63d7fd847ddd89bee5f2876375 | |
parent | 8d5131de0c9c5d562648808c3693ee7a3bd9c1fd (diff) | |
parent | 968cd30898333e064aaa28aead8da119e6b00b33 (diff) | |
download | buildstream-2fba71ef650d242882147ff145cd6afa16b9d16f.tar.gz |
Merge branch 'bwh/fix-git-remote-name-check-1' into 'bst-1'
git source plugin: Fix check for remote existence
See merge request BuildStream/buildstream!2030
-rw-r--r-- | buildstream/plugins/sources/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py index 495246423..94472bacd 100644 --- a/buildstream/plugins/sources/git.py +++ b/buildstream/plugins/sources/git.py @@ -185,7 +185,7 @@ class GitMirror(SourceFetcher): fail="Failed to retrieve list of remotes in {}".format(self.mirror), cwd=self.mirror ) - if remote_name not in remotes: + if remote_name not in remotes.strip().split(): self.source.call( [self.source.host_git, 'remote', 'add', remote_name, url], fail="Failed to add remote {} with url {}".format(remote_name, url), |