Skip to content
Browse files

Fix detection of the lack of user identity details in git global and …

…system configuration files
  • Loading branch information...
1 parent 8925258 commit fb6083042a11c64e9d48a97062c1930e74059ce6 @nulltoken nulltoken committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 LibGit2Sharp/RepositoryExtensions.cs
View
4 LibGit2Sharp/RepositoryExtensions.cs
@@ -142,8 +142,8 @@ public static Commit Commit(this Repository repository, string message, Signatur
private static Signature BuildSignatureFromGlobalConfiguration(Repository repository, DateTimeOffset now)
{
- var name = repository.Config.Get("user.name", string.Empty);
- var email = repository.Config.Get("user.email", string.Empty);
+ var name = repository.Config.Get<string>("user.name", null);
+ var email = repository.Config.Get<string>("user.email", null);
if ((name == null) || (email == null))
{

0 comments on commit fb60830

Please sign in to comment.
Something went wrong with that request. Please try again.