Skip to content

Commit 3f239e6

Browse files
committed
Use repository URL directly in isBareRepository
1 parent c563c6e commit 3f239e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PBGitRepository.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ + (NSURL *)gitDirForURL:(NSURL *)repositoryURL;
8888
+ (NSURL*)baseDirForURL:(NSURL*)repositoryURL;
8989
{
9090
NSURL* gitDirURL = [self gitDirForURL:repositoryURL];
91-
NSString* repositoryPath = [gitDirURL path];
9291

93-
if (![PBGitRepository isBareRepository:repositoryURL]) {
92+
if (![PBGitRepository isBareRepository:gitDirURL]) {
9493
repositoryURL = [NSURL fileURLWithPath:[[repositoryURL path] stringByDeletingLastPathComponent]];
9594
}
9695

0 commit comments

Comments
 (0)