diff --git a/library/git b/library/git index 0c9592d702d..f7fa458977e 100755 --- a/library/git +++ b/library/git @@ -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)