Skip to content

Commit 4c58ff3

Browse files
committed
fixup! Moar
1 parent 7abb0ef commit 4c58ff3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

LibGit2Sharp/Network.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ static void DoFetch(RepositorySafeHandle repoHandle, Remote remote, string url,
137137

138138
using (RemoteSafeHandle remoteHandle = Build(repoHandle, remote, url))
139139
{
140-
if (options.TagFetchMode.HasValue)
141-
{
142-
Proxy.git_remote_set_autotag(repoHandle, remote.Name, options.TagFetchMode.Value);
143-
}
144-
145140
if (refspecs != null)
146141
{
147142
Proxy.git_remote_set_fetch_refspecs(remoteHandle, refspecs);
@@ -160,9 +155,14 @@ static void DoFetch(RepositorySafeHandle repoHandle, Remote remote, string url,
160155
// GC occuring in between setting the remote callbacks and actual usage in one of the functions afterwords.
161156
var fetchOptions = new GitFetchOptions
162157
{
163-
RemoteCallbacks = gitCallbacks
158+
RemoteCallbacks = gitCallbacks,
164159
};
165160

161+
if (options.TagFetchMode.HasValue)
162+
{
163+
fetchOptions.download_tags = options.TagFetchMode.Value;
164+
}
165+
166166
Proxy.git_remote_fetch(remoteHandle, fetchOptions, logMessage);
167167
}
168168
}

0 commit comments

Comments
 (0)