Enum git2::RemoteRedirect
source · pub enum RemoteRedirect {
None,
Initial,
All,
}
Expand description
Remote redirection settings; whether redirects to another host are permitted.
By default, git will follow a redirect on the initial request
(/info/refs
), but not subsequent requests.
Variants§
None
Do not follow any off-site redirects at any stage of the fetch or push.
Initial
Allow off-site redirects only upon the initial request. This is the default.
All
Allow redirects at any stage in the fetch or push.