Skip to content

Commit fcc725c

Browse files
authored
Add comment linking to issue for future reference
1 parent ac3e29f commit fcc725c

File tree

1 file changed

+2
-0
lines changed
  • readthedocs/vcs_support/backends

1 file changed

+2
-0
lines changed

readthedocs/vcs_support/backends/git.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def use_shallow_clone(self):
148148
return not self.project.has_feature(Feature.DONT_SHALLOW_CLONE)
149149

150150
def fetch(self):
151+
# --force lets us checkout branches that are not fast-forwarded
152+
# https://github.com/readthedocs/readthedocs.org/issues/6097
151153
cmd = ['git', 'fetch', 'origin',
152154
'--force', '--tags', '--prune', '--prune-tags']
153155

0 commit comments

Comments
 (0)