diff --git a/PBGitRepository.m b/PBGitRepository.m index 55bfa30..6f93a71 100644 --- a/PBGitRepository.m +++ b/PBGitRepository.m @@ -61,6 +61,8 @@ NSString* PBGitRepositoryErrorDomain = @"GitXErrorDomain"; if ([newPath isEqualToString:@".git"]) return [NSURL fileURLWithPath:[repositoryPath stringByAppendingPathComponent:@".git"]]; + if ([newPath isEqualToString:@"."]) + return [NSURL fileURLWithPath:repositoryPath]; if ([newPath length] > 0) return [NSURL fileURLWithPath:newPath];