From f42b1832cabd8e9a4d15ff6b997ee52f51eeddb7 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 5 Feb 2013 03:18:02 +0100 Subject: [PATCH] Allowing clone to empty folder --- git-bzr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-bzr b/git-bzr index bd881d1..7a7de07 100755 --- a/git-bzr +++ b/git-bzr @@ -399,8 +399,8 @@ def cmd_clone(args): branch = 'master' bzr_ref = bzr_ref_name(branch) - if os.path.exists(target): - 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) git(['init', target]) os.chdir(target)