Skip to content

Commit c2878fe

Browse files
Merge pull request #834 from screamerbg/f/tags_git_2_20
Fix: Add --force flag to `git fetch` to allow tags to be fetched in git 2.20
2 parents 51ac3b9 + e56767f commit c2878fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ def publish(all_refs=None):
753753

754754
def fetch():
755755
info("Fetching revisions from remote repository to \"%s\"" % os.path.basename(getcwd()))
756-
popen([git_cmd, 'fetch', '--all', '--tags'] + (['-v'] if very_verbose else ([] if verbose else ['-q'])))
756+
popen([git_cmd, 'fetch', '--all', '--tags', '--force'] + (['-v'] if very_verbose else ([] if verbose else ['-q'])))
757757

758758
def discard(clean_files=False):
759759
info("Discarding local changes in \"%s\"" % os.path.basename(getcwd()))

0 commit comments

Comments
 (0)