Skip to content

Commit c8ea4eb

Browse files
committed
Check for an empty email address.
1 parent 3a8507b commit c8ea4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTRepository.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ - (GTSignature *)userSignatureForNow {
738738
if (name.length == 0) name = self.class.defaultUserName;
739739

740740
NSString *email = [configuration stringForKey:@"user.email"];
741-
if (email == nil) email = self.class.defaultEmail;
741+
if (email.length == 0) email = self.class.defaultEmail;
742742

743743
NSDate *now = [NSDate date];
744744
GTSignature *signature = [[GTSignature alloc] initWithName:name email:email time:now];

0 commit comments

Comments
 (0)