aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-16 16:47:26 -0700
committerJunio C Hamano <gitster@pobox.com>2011-03-16 16:47:26 -0700
commit8209b7fb9beecdeb47180b57b2dfe1666ec27f82 (patch)
tree1f4539f46c24a7f1fc2401ef1728f3440e668e31 /builtin
parent61a6f1faecf19d7727bdfae012a14747c672cb1a (diff)
parenta9026187923643235d4f9b876ff5f4c0ebe5c9ae (diff)
downloadgit-8209b7fb9beecdeb47180b57b2dfe1666ec27f82.tar.gz
git-8209b7fb9beecdeb47180b57b2dfe1666ec27f82.tar.xz
Merge branch 'jk/fail-null-clone' into maint
* jk/fail-null-clone: clone: die when trying to clone missing local path
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 60d9a6428..2ee1fa984 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -413,7 +413,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
if (path)
repo = xstrdup(make_nonrelative_path(repo_name));
else if (!strchr(repo_name, ':'))
- repo = xstrdup(make_absolute_path(repo_name));
+ die("repository '%s' does not exist", repo_name);
else
repo = repo_name;
is_local = path && !is_bundle;