libgit2

git_remote_redirect_t

Version:

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

GIT_REMOTE_REDIRECT_NONE
(1 << 0)

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

GIT_REMOTE_REDIRECT_INITIAL
(1 << 1)

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

GIT_REMOTE_REDIRECT_ALL
(1 << 2)

Allow redirects at any stage in the fetch or push.

Versions