diff options
author | Jeff Stubler <brunsa2@gmail.com> | 2015-07-20 20:34:19 -0500 |
---|---|---|
committer | Jeff Stubler <brunsa2@gmail.com> | 2015-11-01 11:38:00 -0600 |
commit | c843722de2d778b6ec8fef0656797fd5a8074666 (patch) | |
tree | 75040853228588298e29d91b8ce606861f2bb468 /app/models/project.rb | |
parent | 8f75200d466d41707f3b1ca12ca4244cfa2e2e7b (diff) | |
download | gitlab-ce-c843722de2d778b6ec8fef0656797fd5a8074666.tar.gz |
Add graphs showing commits ahead and behind default to branches page
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 74b89aad499..e73a856c289 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -714,6 +714,8 @@ class Project < ActiveRecord::Base end def change_head(branch) + # Cached divergent commit counts are based on repository head + repository.expire_branch_cache gitlab_shell.update_repository_head(self.path_with_namespace, branch) reload_default_branch end |