diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-12-07 16:59:41 +0100 |
---|---|---|
committer | Valentin David <valentin.david@codethink.co.uk> | 2018-12-11 13:12:08 +0100 |
commit | f2fcc2f6ff6e2000e75a078ab024235173936b8f (patch) | |
tree | b6ffa1c1ef1a776a76ef987c51bb4455c5031009 /buildstream/plugins | |
parent | 873b618c2f3dbb8c054f9eab7cd3c6c15cbf049c (diff) | |
download | buildstream-f2fcc2f6ff6e2000e75a078ab024235173936b8f.tar.gz |
Force updating tags when fetching git repositoryvalentindavid/git_force_fetch_tags
When using aliases there are multiple remotes used in the cache
repository. When fetching, tags are not updated if the were previously
fetched from a different remote. Commits that not in a branch and only
tagged do not get fetched if the tag is not fetched.
Fixes #812
Diffstat (limited to 'buildstream/plugins')
-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 ae8f36bfe..74d632b6d 100644 --- a/buildstream/plugins/sources/git.py +++ b/buildstream/plugins/sources/git.py @@ -247,7 +247,7 @@ class GitMirror(SourceFetcher): else: remote_name = "origin" - self.source.call([self.source.host_git, 'fetch', remote_name, '--prune'], + self.source.call([self.source.host_git, 'fetch', remote_name, '--prune', '--force', '--tags'], fail="Failed to fetch from remote git repository: {}".format(url), fail_temporarily=True, cwd=self.mirror) |