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:
authornulltoken <emeric.fermas@gmail.com>2012-02-01 12:48:59 +0400
committernulltoken <emeric.fermas@gmail.com>2012-02-01 23:20:43 +0400
commit839c659c35d8fe42407ef3a749a251eb4daff254 (patch)
treec2dfd4294f2818ce4277a611bc6ba1dd44e6c47e /LibGit2Sharp/DetachedHead.cs
parentb765016ef89ac39555be0543695cca00dbe2ded9 (diff)
Prevent Repository.Head.IsCurrentRepositoryHead from throwing a NullReferenceException when the Repository is empty
Fix issue #105
Diffstat (limited to 'LibGit2Sharp/DetachedHead.cs')
-rw-r--r--LibGit2Sharp/DetachedHead.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/LibGit2Sharp/DetachedHead.cs b/LibGit2Sharp/DetachedHead.cs
index 9d83b0e9..2756f451 100644
--- a/LibGit2Sharp/DetachedHead.cs
+++ b/LibGit2Sharp/DetachedHead.cs
@@ -7,20 +7,6 @@
{
}
- /// <summary>
- /// Gets a value indicating whether this instance is current branch (HEAD) in the repository.
- /// </summary>
- /// <value>
- /// <c>true</c> if this instance is current branch; otherwise, <c>false</c>.
- /// </value>
- public override bool IsCurrentRepositoryHead
- {
- get
- {
- return repo.Head == this;
- }
- }
-
protected override string Shorten(string branchName)
{
return branchName;