We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc42e9 commit 7663a48Copy full SHA for 7663a48
gix-transport/src/client/blocking_io/http/reqwest/remote.rs
@@ -61,7 +61,15 @@ impl Default for Remote {
61
// git does not want to be redirected to a different host.
62
attempt.stop()
63
}
64
- _ => attempt.follow(),
+ _ => {
65
+ // emulate default git behaviour which relies on curl default behaviour apparently.
66
+ const CURL_DEFAULT_REDIRS: usize = 50;
67
+ if prev_urls.len() >= CURL_DEFAULT_REDIRS {
68
+ attempt.error("too many redirects")
69
+ } else {
70
+ attempt.follow()
71
+ }
72
73
74
} else {
75
0 commit comments