diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-01-05 15:44:22 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-01-05 15:44:22 +0000 |
commit | 07c39c9976bcceca94b11525917cd27db8088b2f (patch) | |
tree | 332c4bb637056e04cb54edfa75396e2a347b098b /app/models/project.rb | |
parent | 7c3c901ada6fc4a6d2d3ce7a2cf8188cf6615008 (diff) | |
parent | 2e8ec7e7204b2876218db34439584204b1062265 (diff) | |
download | gitlab-ce-07c39c9976bcceca94b11525917cd27db8088b2f.tar.gz |
Merge branch 'brunsa2/gitlab-ce-diverging-branch-graphs' into 'master'
Add graphs of commits ahead/behind default branch (by @brunsa2)
Replaces https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1716
See merge request !2301
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 eadc42d1da5..b1a6cfa86af 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -775,6 +775,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 |