1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Derek Carter 2012-07-20 09:48:18 -04:00
parent 8bb8314d10
commit f0f8eb3445

View file

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