Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Ensured the clone is updated before building docs.

  • Loading branch information...
commit 7e8c265cc2554f11805259d71e8a59721da25acc 1 parent 103685b
Aymeric Augustin authored
4  django_website/docs/management/commands/update_docs.py
@@ -172,8 +172,8 @@ def update_git(self, url, destdir):
172 172
             try:
173 173
                 cwd = os.getcwdu()
174 174
                 os.chdir(destdir)
175  
-                subprocess.call(['git', 'fetch'])
176  
-                subprocess.call(['git', 'reset', '--hard', branch])
  175
+                subprocess.call(['git', 'reset', '--hard', 'HEAD'])
  176
+                subprocess.call(['git', 'pull'])
177 177
             finally:
178 178
                 os.chdir(cwd)
179 179
         else:

0 notes on commit 7e8c265

Please sign in to comment.
Something went wrong with that request. Please try again.