Commit 4826357b authored by richardmaw-codethink's avatar richardmaw-codethink

_gitsourcebase.py: Fetch with explicit refspecs

Old versions of git lack --force and --tags,
but the same effect can be had by specifying refspecs.
parent ad2df651
......@@ -112,7 +112,8 @@ class GitMirror(SourceFetcher):
else:
remote_name = "origin"
self.source.call([self.source.host_git, 'fetch', remote_name, '--prune', '--force', '--tags'],
self.source.call([self.source.host_git, 'fetch', remote_name, '--prune',
'+refs/heads/*:refs/heads/*', '+refs/tags/*:refs/tags/*'],
fail="Failed to fetch from remote git repository: {}".format(url),
fail_temporarily=True,
cwd=self.mirror)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment