git_remote_redirect_t

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.

Values

ValueMeaning
GIT_REMOTE_REDIRECT_NONE1 << 0

Do not follow any off-site redirects at any stage of the fetch or push.

GIT_REMOTE_REDIRECT_INITIAL1 << 1

Allow off-site redirects only upon the initial request. This is the default.

GIT_REMOTE_REDIRECT_ALL1 << 2

Allow redirects at any stage in the fetch or push.

Meta