From 5e126433f648ffd702806b2ab354ea2d31af1c32 Mon Sep 17 00:00:00 2001 From: brotherbard Date: Sat, 7 Nov 2009 23:22:20 -0700 Subject: [PATCH] Bug fix: Move updating the current branch to the checkoutRef method. Stops the branch from being updated back to the current branch when the Refresh Automatically preference is on. --- PBGitRepository.m | 1 - PBRefController.m | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/PBGitRepository.m b/PBGitRepository.m index c65b48a..217a938 100644 --- a/PBGitRepository.m +++ b/PBGitRepository.m @@ -269,7 +269,6 @@ static NSString * repositoryBasePath = nil; // Add an "All branches" option in the branches list [self addBranch:[PBGitRevSpecifier allBranchesRevSpec]]; [self addBranch:[PBGitRevSpecifier localBranchesRevSpec]]; - [self readCurrentBranch]; [[[self windowController] window] setTitle:[self displayName]]; diff --git a/PBRefController.m b/PBRefController.m index 8f49a5e..5010079 100644 --- a/PBRefController.m +++ b/PBRefController.m @@ -67,6 +67,7 @@ return; } [historyController.repository reloadRefs]; + [historyController.repository readCurrentBranch]; [commitController rearrangeObjects]; }