Skip to content

Commit

Permalink
Add --tags argument to git fetch
Browse files Browse the repository at this point in the history
Should resolve flakiness where a manual `git fetch --tags` is sometimes
needed inside the `kobo-docker` directory to fix the following:

    error: pathspec '<tag>' did not match any file(s) known to git
  • Loading branch information
jnm committed Sep 29, 2021
1 parent ab1b96a commit 9d3e713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def update_kobodocker(dict_=None):
dict_ = config.get_dict()

# fetch new tags and prune
git_command = ['git', 'fetch', '-p']
git_command = ['git', 'fetch', '--prune', '--tags']
CLI.run_command(git_command, cwd=dict_['kobodocker_path'])

# checkout branch
Expand All @@ -101,7 +101,7 @@ def update_kobodocker(dict_=None):
@staticmethod
def update_koboinstall(version):
# fetch new tags and prune
git_fetch_prune_command = ['git', 'fetch', '-p']
git_fetch_prune_command = ['git', 'fetch', '--prune', '--tags']
CLI.run_command(git_fetch_prune_command)

# checkout branch
Expand Down

0 comments on commit 9d3e713

Please sign in to comment.