We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e05a628 commit 65ebec8Copy full SHA for 65ebec8
Classes/git/PBGitRepository.m
@@ -333,6 +333,11 @@ - (void) reloadRefs
333
334
NSError* error = nil;
335
NSArray* allRefs = [self.gtRepo referenceNamesWithError:&error];
336
+
337
+ if ([self.gtRepo isHEADDetached]) {
338
+ // Add HEAD when we're detached
339
+ allRefs = [allRefs arrayByAddingObject:@"HEAD"];
340
+ }
341
342
// load all named refs
343
NSMutableOrderedSet *oldBranches = [self.branchesSet mutableCopy];
0 commit comments