diff options
Diffstat (limited to 'LibGit2Sharp/CommitCollection.cs')
-rw-r--r-- | LibGit2Sharp/CommitCollection.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/CommitCollection.cs b/LibGit2Sharp/CommitCollection.cs index 777a59af..008055d1 100644 --- a/LibGit2Sharp/CommitCollection.cs +++ b/LibGit2Sharp/CommitCollection.cs @@ -109,7 +109,7 @@ namespace LibGit2Sharp int res = NativeMethods.git_tree_create_fromindex(out treeOid, repo.Index.Handle); Ensure.Success(res); - Reference head = repo.Head; + Reference head = repo.Refs["HEAD"]; GitOid[] gitOids = RetrieveCommitParent(head); GitOid commitOid; |