This repository was archived by the owner on Sep 11, 2020. It is now read-only.
Commit a77b281
committed
Fix host redirect handling
If you try to clone from a url that redirects to another host
e.g. `example.com/repo` -> `github.com/org/repo.git`,
it results in a redirect to `example.com/org/repo.git`
because ModifyEndpointIfRedirect only takes into account the scheme and path.
Signed-off-by: DisposaBoy <[email protected]>1 parent 87cc819 commit a77b281
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
| 161 | + | |
| 162 | + | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| |||
0 commit comments