File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ internal class GitFetchOptions
11
11
public bool UpdateFetchHead = true ;
12
12
public TagFetchMode download_tags ;
13
13
public GitProxyOptions ProxyOptions ;
14
- public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Auto ;
14
+ public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Initial ;
15
15
public GitStrArrayManaged CustomHeaders ;
16
16
}
17
17
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ internal class GitPushOptions
9
9
public int PackbuilderDegreeOfParallelism ;
10
10
public GitRemoteCallbacks RemoteCallbacks ;
11
11
public GitProxyOptions ProxyOptions ;
12
- public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Auto ;
12
+ public RemoteRedirectMode FollowRedirects = RemoteRedirectMode . Initial ;
13
13
public GitStrArrayManaged CustomHeaders ;
14
14
}
15
15
}
Original file line number Diff line number Diff line change 1
1
namespace LibGit2Sharp
2
2
{
3
3
/// <summary>
4
- /// Remote redirection settings; wehther redirects to another
4
+ /// Remote redirection settings; whether redirects to another
5
5
/// host are permitted. By default, git will follow a redirect
6
6
/// on the initial request (`/info/refs`) but not subsequent
7
7
/// requests.
@@ -12,17 +12,17 @@ public enum RemoteRedirectMode
12
12
/// Do not follow any off-site redirects at any stage of
13
13
/// the fetch or push.
14
14
/// </summary>
15
- None = 0 , // GIT_REMOTE_REDIRECT_NONE
15
+ None = 1 << 0 , // GIT_REMOTE_REDIRECT_NONE
16
16
17
17
/// <summary>
18
18
/// Allow off-site redirects only upon the initial
19
19
/// request. This is the default.
20
20
/// </summary>
21
- Auto , // GIT_REMOTE_REDIRECT_INITIAL
21
+ Initial = 1 << 1 , // GIT_REMOTE_REDIRECT_INITIAL
22
22
23
23
/// <summary>
24
24
/// Allow redirects at any stage in the fetch or push.
25
25
/// </summary>
26
- All // GIT_REMOTE_REDIRECT_ALL
26
+ All = 1 << 2 // GIT_REMOTE_REDIRECT_ALL
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments