Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Also display HEAD if on a detached HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter committed Sep 12, 2008
1 parent 978a22c commit f0fb0c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PBGitRepository.m
Expand Up @@ -188,7 +188,8 @@ - (PBGitRevSpecifier*) headRef
NSString* branch = [self parseSymbolicReference: @"HEAD"];
if (branch && [branch hasPrefix:@"refs/heads/"])
return [[PBGitRevSpecifier alloc] initWithRef:[PBGitRef refFromString:branch]];
return nil;

return [[PBGitRevSpecifier alloc] initWithRef:[PBGitRef refFromString:@"HEAD"]];
}

// Returns either this object, or an existing, equal object
Expand Down

0 comments on commit f0fb0c8

Please sign in to comment.