diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-05-19 19:20:02 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-05-19 20:20:59 +0400 |
commit | 65de100acff6a2b2d2556258cc12d02e0f3fbd14 (patch) | |
tree | 8771aed9f85542e09b114fc376f8ed9b696ef717 /LibGit2Sharp/RepositoryInformation.cs | |
parent | 4322bd76853054cd60601629ac239654ae89c220 (diff) |
Fix Repository.Info.IsEmpty
Diffstat (limited to 'LibGit2Sharp/RepositoryInformation.cs')
-rw-r--r-- | LibGit2Sharp/RepositoryInformation.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/LibGit2Sharp/RepositoryInformation.cs b/LibGit2Sharp/RepositoryInformation.cs index de070a97..97588070 100644 --- a/LibGit2Sharp/RepositoryInformation.cs +++ b/LibGit2Sharp/RepositoryInformation.cs @@ -15,7 +15,6 @@ namespace LibGit2Sharp Path = PosixPathHelper.ToNative(posixPath); IsBare = isBare; WorkingDirectory = PosixPathHelper.ToNative(posixWorkingDirectoryPath); - IsEmpty = NativeMethods.git_repository_is_empty(repo.Handle); } /// <summary> @@ -42,7 +41,10 @@ namespace LibGit2Sharp /// <value> /// <c>true</c> if this repository is empty; otherwise, <c>false</c>. /// </value> - public bool IsEmpty { get; private set; } + public bool IsEmpty + { + get { return NativeMethods.git_repository_is_empty(repo.Handle); } + } /// <summary> /// Indicates whether the Head points to an arbitrary commit instead of the tip of a local banch. |