Skip to content

Commit b137dfd

Browse files
committed
Didn't want to do that. Update the repo and checkout the version we want.
1 parent 3702e8c commit b137dfd

File tree

1 file changed

+3
-1
lines changed
  • readthedocs/vcs_support/backends

1 file changed

+3
-1
lines changed

readthedocs/vcs_support/backends/git.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ def _get_clean_tag_name(self, name):
114114

115115
def checkout(self, identifier=None):
116116
super(Backend, self).checkout()
117-
self.update()
117+
self._pull()
118118
if not identifier:
119119
identifier = self.fallback_branch
120120
if self.project.default_branch:
121121
identifier = self.project.default_branch
122+
#Checkout the correct identifier for this branch.
123+
self._run_command('git', 'reset', '--hard', identifier)
122124

123125
def get_env(self):
124126
env = super(Backend, self).get_env()

0 commit comments

Comments
 (0)