File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ internal class GitFetchOptions
1111 public bool UpdateFetchHead = true ;
1212 public TagFetchMode download_tags ;
1313 public GitProxyOptions ProxyOptions ;
14- public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Auto ;
14+ public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Initial ;
1515 public GitStrArrayManaged CustomHeaders ;
1616 }
1717}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ internal class GitPushOptions
99 public int PackbuilderDegreeOfParallelism ;
1010 public GitRemoteCallbacks RemoteCallbacks ;
1111 public GitProxyOptions ProxyOptions ;
12- public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Auto ;
12+ public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Initial ;
1313 public GitStrArrayManaged CustomHeaders ;
1414 }
1515}
Original file line number Diff line number Diff line change 11namespace LibGit2Sharp
22{
33 /// <summary>
4- /// Remote redirection settings; wehther redirects to another
4+ /// Remote redirection settings; whether redirects to another
55 /// host are permitted. By default, git will follow a redirect
66 /// on the initial request (`/info/refs`) but not subsequent
77 /// requests.
@@ -12,17 +12,17 @@ public enum RemoteRedirectMode
1212 /// Do not follow any off-site redirects at any stage of
1313 /// the fetch or push.
1414 /// </summary>
15- None = 0 , // GIT_REMOTE_REDIRECT_NONE
15+ None = 1 << 0 , // GIT_REMOTE_REDIRECT_NONE
1616
1717 /// <summary>
1818 /// Allow off-site redirects only upon the initial
1919 /// request. This is the default.
2020 /// </summary>
21- Auto , // GIT_REMOTE_REDIRECT_INITIAL
21+ Initial = 1 << 1 , // GIT_REMOTE_REDIRECT_INITIAL
2222
2323 /// <summary>
2424 /// Allow redirects at any stage in the fetch or push.
2525 /// </summary>
26- All // GIT_REMOTE_REDIRECT_ALL
26+ All = 1 << 2 // GIT_REMOTE_REDIRECT_ALL
2727 }
2828}
You can’t perform that action at this time.
0 commit comments