From 7bc7302bd4c19b266f7560f2aef12bce3389a466 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Fri, 19 Sep 2008 21:46:54 +0200 Subject: [PATCH] Don't show tags anymore in branch menu This was accidentally added after the xib splitting --- PBGitRepository.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PBGitRepository.m b/PBGitRepository.m index c1c0f2b..2523ccb 100644 --- a/PBGitRepository.m +++ b/PBGitRepository.m @@ -199,10 +199,11 @@ static NSString* gitPath; // 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]; }