summaryrefslogtreecommitdiff
path: root/builtin-clone.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-09-02 17:10:08 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-09-02 17:10:08 -0700
commit106db883b791efb7f39f3b2f8553236ba792a89e (patch)
tree4589463a8d7a3f2f42bfc1bb0ef72d0ad7c852a3 /builtin-clone.c
parentMerge branch 'maint' (diff)
parentMakefile: add merge_recursive.h to LIB_H (diff)
downloadtgif-106db883b791efb7f39f3b2f8553236ba792a89e.tar.xz
Merge branch 'maint'
* maint: Makefile: add merge_recursive.h to LIB_H Improve documentation for --dirstat diff option Bring local clone's origin URL in line with that of a remote clone Documentation: minor cleanup in a use case in 'git stash' manual Documentation: fix disappeared lines in 'git stash' manpage Documentation: fix reference to a for-each-ref option
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 c0e3086437..f44eceab3a 100644
--- a/builtin-clone.c
+++ b/builtin-clone.c
@@ -387,7 +387,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
path = get_repo_path(repo_name, &is_bundle);
if (path)
- repo = path;
+ repo = xstrdup(make_nonrelative_path(repo_name));
else if (!strchr(repo_name, ':'))
repo = xstrdup(make_absolute_path(repo_name));
else