Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correctly detect a git repo vs. an empty directory.

  • Loading branch information...
commit fa3f87f2d4d840f9922d23bcc1531b1b5c3bc59e 1 parent 02f01dc
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django_website/docs/management/commands/update_docs.py
View
2  django_website/docs/management/commands/update_docs.py
@@ -162,7 +162,7 @@ def update_git(self, url, destdir):
repo, branch = url.rsplit('@', 1)
else:
repo, branch = url, 'master'
- if destdir.exists():
+ if destdir.child('.git').exists():
try:
cwd = os.getcwdu()
os.chdir(destdir)
Please sign in to comment.
Something went wrong with that request. Please try again.