Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensured the clone is updated before building docs.

  • Loading branch information...
commit 7e8c265cc2554f11805259d71e8a59721da25acc 1 parent 103685b
@aaugustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_website/docs/management/commands/update_docs.py
View
4 django_website/docs/management/commands/update_docs.py
@@ -172,8 +172,8 @@ def update_git(self, url, destdir):
try:
cwd = os.getcwdu()
os.chdir(destdir)
- subprocess.call(['git', 'fetch'])
- subprocess.call(['git', 'reset', '--hard', branch])
+ subprocess.call(['git', 'reset', '--hard', 'HEAD'])
+ subprocess.call(['git', 'pull'])
finally:
os.chdir(cwd)
else:
Please sign in to comment.
Something went wrong with that request. Please try again.