Merge branch 'cn/deprecate-ssh-git-url'
The two alternative ways to spell "ssh://" transport have been deprecated for a long time. The last mention of them has finally removed from the documentation. * cn/deprecate-ssh-git-url: Disown ssh+git and git+ssh
This commit is contained in:
commit
9e689802e3
@ -1129,7 +1129,7 @@ of clones and fetches.
|
|||||||
connection (or proxy, if configured)
|
connection (or proxy, if configured)
|
||||||
|
|
||||||
- `ssh`: git over ssh (including `host:path` syntax,
|
- `ssh`: git over ssh (including `host:path` syntax,
|
||||||
`git+ssh://`, etc).
|
`ssh://`, etc).
|
||||||
|
|
||||||
- `http`: git over http, both "smart http" and "dumb http".
|
- `http`: git over http, both "smart http" and "dumb http".
|
||||||
Note that this does _not_ include `https`; if you want both,
|
Note that this does _not_ include `https`; if you want both,
|
||||||
|
@ -267,9 +267,9 @@ static enum protocol get_protocol(const char *name)
|
|||||||
return PROTO_SSH;
|
return PROTO_SSH;
|
||||||
if (!strcmp(name, "git"))
|
if (!strcmp(name, "git"))
|
||||||
return PROTO_GIT;
|
return PROTO_GIT;
|
||||||
if (!strcmp(name, "git+ssh"))
|
if (!strcmp(name, "git+ssh")) /* deprecated - do not use */
|
||||||
return PROTO_SSH;
|
return PROTO_SSH;
|
||||||
if (!strcmp(name, "ssh+git"))
|
if (!strcmp(name, "ssh+git")) /* deprecated - do not use */
|
||||||
return PROTO_SSH;
|
return PROTO_SSH;
|
||||||
if (!strcmp(name, "file"))
|
if (!strcmp(name, "file"))
|
||||||
return PROTO_FILE;
|
return PROTO_FILE;
|
||||||
|
@ -678,8 +678,9 @@ struct transport *transport_get(struct remote *remote, const char *url)
|
|||||||
|| starts_with(url, "file://")
|
|| starts_with(url, "file://")
|
||||||
|| starts_with(url, "git://")
|
|| starts_with(url, "git://")
|
||||||
|| starts_with(url, "ssh://")
|
|| starts_with(url, "ssh://")
|
||||||
|| starts_with(url, "git+ssh://")
|
|| starts_with(url, "git+ssh://") /* deprecated - do not use */
|
||||||
|| starts_with(url, "ssh+git://")) {
|
|| starts_with(url, "ssh+git://") /* deprecated - do not use */
|
||||||
|
) {
|
||||||
/*
|
/*
|
||||||
* These are builtin smart transports; "allowed" transports
|
* These are builtin smart transports; "allowed" transports
|
||||||
* will be checked individually in git_connect.
|
* will be checked individually in git_connect.
|
||||||
|
Loading…
Reference in New Issue
Block a user