diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-01-06 13:06:25 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-01-06 13:06:25 +0100 |
commit | 639d428046938b5976f87726746d862441ee7036 (patch) | |
tree | d5db554d7efec312ccc6b7994f7dfb5d9ed23bf4 /app/models/project.rb | |
parent | 384445eca6249363c0da6d8b96e7ee030dc6fab3 (diff) | |
parent | 95b1adb3394851132ea7ecb3104e9a857bdad82f (diff) | |
download | gitlab-ce-more-opengraph.tar.gz |
Merge branch 'master' into more-opengraphmore-opengraph
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 |