summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-08-10 15:48:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-10 17:59:30 (GMT)
commitd6a31e08cd300d8085af799ff9fe16b5963caab7 (patch)
tree1ddab64362c59255615cb727d990caa419d34b93 /builtin/clone.c
parent7e837c6477b59cc51756e241ccfee76068e5e379 (diff)
downloadgit-d6a31e08cd300d8085af799ff9fe16b5963caab7.zip
git-d6a31e08cd300d8085af799ff9fe16b5963caab7.tar.gz
git-d6a31e08cd300d8085af799ff9fe16b5963caab7.tar.bz2
clone: add tests for output directory
When we run "git clone $url", clone guesses from the $url what to name the local output directory. We don't have any test coverage of this, so let's add some basic tests. This reveals a few problems: - cloning "foo.git/" does not properly remove the ".git"; this is a recent regression from 7e837c6 (clone: simplify string handling in guess_dir_name(), 2015-07-09) - likewise, cloning foo/.git does not seem to handle the bare case (we should end up in foo.git, but we try to use foo/.git on the local end), which also comes from 7e837c6. - cloning the root is not very smart about URL parsing, and usernames and port numbers may end up in the directory name All of these tests are marked as failures. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clone.c')
0 files changed, 0 insertions, 0 deletions