mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
git mkdir causes problems with older git (can't checkout to existing directory)
This commit is contained in:
parent
8bb8314d10
commit
f0f8eb3445
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue