diff options
author | Jeff King <peff@peff.net> | 2015-08-10 17:48:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-10 10:59:30 -0700 |
commit | d6a31e08cd300d8085af799ff9fe16b5963caab7 (patch) | |
tree | 1ddab64362c59255615cb727d990caa419d34b93 /compat/mingw.h | |
parent | clone: simplify string handling in guess_dir_name() (diff) | |
download | tgif-d6a31e08cd300d8085af799ff9fe16b5963caab7.tar.xz |
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 'compat/mingw.h')
0 files changed, 0 insertions, 0 deletions