diff options
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/checkout.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index 8c5276cf44..953b76370b 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -865,7 +865,7 @@ static int prepare_linked_checkout(const struct checkout_opts *opts,  	if (!new->commit)  		die(_("no branch specified")); -	if (file_exists(path)) +	if (file_exists(path) && !is_empty_dir(path))  		die(_("'%s' already exists"), path);  	len = strlen(path);  | 
