Skip to content

Commit 395616b

Browse files
committed
Register Remotes for cleanup with the repo
1 parent 9225134 commit 395616b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

LibGit2Sharp/Remote.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ internal Remote(RemoteHandle handle, Repository repository)
3939
PushUrl = Proxy.git_remote_pushurl(handle);
4040
TagFetchMode = Proxy.git_remote_autotag(handle);
4141
refSpecs = new RefSpecCollection(this, handle);
42+
repository.RegisterForCleanup(this);
4243
}
4344

4445
~Remote()

0 commit comments

Comments
 (0)