Browse files

Ensured the clone is updated before building docs.

  • Loading branch information...
1 parent 103685b commit 7e8c265cc2554f11805259d71e8a59721da25acc @aaugustin aaugustin committed May 22, 2012
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:

0 comments on commit 7e8c265

Please sign in to comment.