Permalink
Browse files

Don't show tags anymore in branch menu

This was accidentally added after the xib splitting
  • Loading branch information...
1 parent 65a40fe commit 7bc7302bd4c19b266f7560f2aef12bce3389a466 @pieter committed Sep 19, 2008
Showing with 4 additions and 3 deletions.
  1. +4 −3 PBGitRepository.m
View
7 PBGitRepository.m
@@ -199,10 +199,11 @@ - (BOOL) reloadRefs
// First do the ref matching. If this ref is new, add it to our ref list
PBGitRef *newRef = [PBGitRef refFromString:[components objectAtIndex:0]];
PBGitRevSpecifier* revSpec = [[PBGitRevSpecifier alloc] initWithRef:newRef];
- if ([self addBranch:revSpec] == revSpec)
- ret = YES;
+ if ([[newRef type] isEqualToString:@"head"] || [[newRef type] isEqualToString:@"remote"])
+ if ([self addBranch:revSpec] != revSpec)
+ ret = YES;
- // Also add this ref to the branches list
+ // Also add this ref to the refs list
[self addRef:newRef fromParameters:components];
}

0 comments on commit 7bc7302

Please sign in to comment.