git mkdir causes problems with older git (can't checkout to existing directory)

reviewable/pr18780/r1
Derek Carter 12 years ago
parent 72aefdb609
commit 69ef933a1e

2
git

@ -87,7 +87,7 @@ def get_version(dest):
def clone(repo, dest, branch): def clone(repo, dest, branch):
''' makes a new git repo if it does not already exist ''' ''' makes a new git repo if it does not already exist '''
try: try:
os.makedirs(dest) os.makedirs(os.path.dirname(dest))
except: except:
pass pass
cmd = "git clone %s %s" % (repo, dest) cmd = "git clone %s %s" % (repo, dest)

Loading…
Cancel
Save