We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de9248b + f42b183 commit 0cfcae6Copy full SHA for 0cfcae6
git-bzr
@@ -401,8 +401,8 @@ def cmd_clone(args):
401
branch = 'master'
402
bzr_ref = bzr_ref_name(branch)
403
404
- if os.path.exists(target):
405
- die('Directory already exists: %s', target)
+ if os.path.exists(target) and os.listdir(target) != []:
+ die('Directory already exists and isn\'t empty: %s', target)
406
407
git(['init', target])
408
os.chdir(target)
0 commit comments