Properly dispose Repository member.

This commit is contained in:
Collins, Sean
2012-04-03 10:34:38 -04:00
committed by Sean M. Collins
parent 82ae6e6f3d
commit 6c663af109
+5
View File
@@ -28,6 +28,11 @@ namespace Sep.Git.Tfs.Core
_repository = new LibGit2Sharp.Repository(GitDir);
}
~GitRepository()
{
_repository.Dispose();
}
public string GitDir { get; set; }
public string WorkingCopyPath { get; set; }
public string WorkingCopySubdir { get; set; }