mono/monodevelop — comment on commit d578084f2dbdae8aa125865e0dcd9b6fe92a18c1
File: main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitUtil.cs line 378
By duncanmak:

This method is used in GitUtilsTests.cs, so this commit broke the build.

I tried writing up a patch, but this is untested.

diff --git a/main/tests/UnitTests/MonoDevelop.VersionControl.Git/GitUtilsTests.cs b/main/tests/UnitTests/MonoDevelop.VersionControl.Git/GitUtilsTests.cs
index e3ab365..015bd82 100644
--- a/main/tests/UnitTests/MonoDevelop.VersionControl.Git/GitUtilsTests.cs
+++ b/main/tests/UnitTests/MonoDevelop.VersionControl.Git/GitUtilsTests.cs
@@ -239,13 +239,12 @@ namespace MonoDevelop.VersionControl.Git
string path = PROJECT_ROOT + filePath;
string key = path + revision;
blames.TryGetValue(key, out blame);
+ var git = new NGit.Api.Git (repo);

if (blame == null)
- {
- ObjectId objectId = repo.Resolve (revision);
- RevCommit commit = walker.ParseCommit (objectId);
- blame = GitUtil.Blame (repo, commit, new FileInfo (path).FullName);
- blames.Add(key, blame);
+ {
+ var result = git.Blame ().SetFilePath (ToGitPath (filePath)).Call ();
+ blames.Add(key, result.GetSourceCommit);
}

return blame;