path: root/builtin/clone.c
diff options
authorJeff King <>2015-08-10 15:48:21 (GMT)
committerJunio C Hamano <>2015-08-10 17:59:30 (GMT)
commitd6a31e08cd300d8085af799ff9fe16b5963caab7 (patch)
tree1ddab64362c59255615cb727d990caa419d34b93 /builtin/clone.c
parent7e837c6477b59cc51756e241ccfee76068e5e379 (diff)
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 <> Signed-off-by: Patrick Steinhardt <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin/clone.c')
0 files changed, 0 insertions, 0 deletions