diff --git a/LibGit2Sharp/Core/GitFetchOptions.cs b/LibGit2Sharp/Core/GitFetchOptions.cs
index bdf8aa585..d82e2f219 100644
--- a/LibGit2Sharp/Core/GitFetchOptions.cs
+++ b/LibGit2Sharp/Core/GitFetchOptions.cs
@@ -11,7 +11,7 @@ internal class GitFetchOptions
public bool UpdateFetchHead = true;
public TagFetchMode download_tags;
public GitProxyOptions ProxyOptions;
- public RemoteRedirectMode FollowRedirects = RemoteRedirectMode.Auto;
+ public RemoteRedirectMode FollowRedirects = RemoteRedirectMode.Initial;
public GitStrArrayManaged CustomHeaders;
}
}
diff --git a/LibGit2Sharp/Core/GitPushOptions.cs b/LibGit2Sharp/Core/GitPushOptions.cs
index 8c98ce9cc..ce1a58f7c 100644
--- a/LibGit2Sharp/Core/GitPushOptions.cs
+++ b/LibGit2Sharp/Core/GitPushOptions.cs
@@ -9,7 +9,7 @@ internal class GitPushOptions
public int PackbuilderDegreeOfParallelism;
public GitRemoteCallbacks RemoteCallbacks;
public GitProxyOptions ProxyOptions;
- public RemoteRedirectMode FollowRedirects = RemoteRedirectMode.Auto;
+ public RemoteRedirectMode FollowRedirects = RemoteRedirectMode.Initial;
public GitStrArrayManaged CustomHeaders;
}
}
diff --git a/LibGit2Sharp/RemoteRedirectMode.cs b/LibGit2Sharp/RemoteRedirectMode.cs
index 08866e68a..029208857 100644
--- a/LibGit2Sharp/RemoteRedirectMode.cs
+++ b/LibGit2Sharp/RemoteRedirectMode.cs
@@ -1,7 +1,7 @@
namespace LibGit2Sharp
{
///
- /// Remote redirection settings; wehther redirects to another
+ /// 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.
@@ -12,17 +12,17 @@ public enum RemoteRedirectMode
/// Do not follow any off-site redirects at any stage of
/// the fetch or push.
///
- None = 0, // GIT_REMOTE_REDIRECT_NONE
+ None = 1 << 0, // GIT_REMOTE_REDIRECT_NONE
///
/// Allow off-site redirects only upon the initial
/// request. This is the default.
///
- Auto, // GIT_REMOTE_REDIRECT_INITIAL
+ Initial = 1 << 1, // GIT_REMOTE_REDIRECT_INITIAL
///
/// Allow redirects at any stage in the fetch or push.
///
- All // GIT_REMOTE_REDIRECT_ALL
+ All = 1 << 2 // GIT_REMOTE_REDIRECT_ALL
}
}