Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'LibGit2Sharp/CommitCollection.cs')
-rw-r--r--LibGit2Sharp/CommitCollection.cs2
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;