diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-20 00:48:54 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-20 00:48:54 +0300 |
commit | 4bfab58ce2d47cef9236571cb1451bf3b62241c1 (patch) | |
tree | 9029ee6b432c0f6a5faddc0a7d89ea6c2b821815 /t | |
parent | 8259da5ea3d993aa8b783a5039f5a78d86312c65 (diff) | |
parent | adef9561f0c8cf2c974d78adac0ae236e159e49f (diff) |
Merge branch 'ps/guess-repo-name-at-root'
"git clone $URL", when cloning from a site whose sole purpose is to
host a single repository (hence, no path after <scheme>://<site>/),
tried to use the site name as the new repository name, but did not
remove username or password when <site> part was of the form
<user>@<pass>:<host>. The code is taught to redact these.
* ps/guess-repo-name-at-root:
clone: abort if no dir name could be guessed
clone: do not use port number as dir name
clone: do not include authentication data in guessed dir
Diffstat (limited to 't')
-rwxr-xr-x | t/t5603-clone-dirname.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/t/t5603-clone-dirname.sh b/t/t5603-clone-dirname.sh index 765cc434ef..d5af758129 100755 --- a/t/t5603-clone-dirname.sh +++ b/t/t5603-clone-dirname.sh @@ -76,17 +76,17 @@ test_clone_dir host:foo/.git/// foo # omitting the path should default to the hostname test_clone_dir ssh://host/ host -test_clone_dir ssh://host:1234/ host fail -test_clone_dir ssh://user@host/ host fail -test_clone_dir host:/ host fail +test_clone_dir ssh://host:1234/ host +test_clone_dir ssh://user@host/ host +test_clone_dir host:/ host # auth materials should be redacted -test_clone_dir ssh://user:password@host/ host fail -test_clone_dir ssh://user:password@host:1234/ host fail -test_clone_dir ssh://user:passw@rd@host:1234/ host fail -test_clone_dir user@host:/ host fail -test_clone_dir user:password@host:/ host fail -test_clone_dir user:passw@rd@host:/ host fail +test_clone_dir ssh://user:password@host/ host +test_clone_dir ssh://user:password@host:1234/ host +test_clone_dir ssh://user:passw@rd@host:1234/ host +test_clone_dir user@host:/ host +test_clone_dir user:password@host:/ host +test_clone_dir user:passw@rd@host:/ host # auth-like material should not be dropped test_clone_dir ssh://host/foo@bar foo@bar |