Skip to content

Commit 0eb011b

Browse files
committed
Bugfix: include detached HEAD in local branches
1 parent dcba769 commit 0eb011b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PBGitHistoryList.m

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ - (NSSet *) baseCommitsForLocalRefs
159159
if ([ref isBranch] || [ref isTag])
160160
[baseCommitSHAs addObject:sha];
161161

162+
if (![[PBGitRef refFromString:[[repository headRef] simpleRef]] type])
163+
[baseCommitSHAs addObject:[repository headSHA]];
164+
162165
return baseCommitSHAs;
163166
}
164167

0 commit comments

Comments
 (0)