summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-04 23:02:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-04 23:02:26 (GMT)
commit51aca1665b9fa8214927780fbccd1915649b3c44 (patch)
tree55489abb9e7ec87845a963eaf7e11e6eaac34edf /builtin/clone.c
parent63bf941e5a43c343265e836cab2ff2344937e1f6 (diff)
parenta9026187923643235d4f9b876ff5f4c0ebe5c9ae (diff)
downloadgit-51aca1665b9fa8214927780fbccd1915649b3c44.zip
git-51aca1665b9fa8214927780fbccd1915649b3c44.tar.gz
git-51aca1665b9fa8214927780fbccd1915649b3c44.tar.bz2
Merge branch 'jk/fail-null-clone'
* jk/fail-null-clone: clone: die when trying to clone missing local path
Diffstat (limited to 'builtin/clone.c')
-rw-r--r--builtin/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 60d9a64..2ee1fa9 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;