diff options
author | Stan Hu <stanhu@gmail.com> | 2019-03-22 21:38:08 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-03-22 21:38:08 +0300 |
commit | 7ffc79829194d3be18cf66017528a90b41586054 (patch) | |
tree | e09c42cfaf7fd166c8ddf28fefc6140e0c52f815 /app/models/project.rb | |
parent | 85a1acbe50a3db74d0298fc622170f0fd000988d (diff) | |
parent | e64589a370c9536f8701c4b7124242b2d1016ec1 (diff) |
Merge branch 'refresh-commit-count-after-head-change' into 'master'
Refresh commit count after repository head changes
Closes #59346
See merge request gitlab-org/gitlab-ce!26473
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 14fc158ede1..611c64c8f49 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1384,6 +1384,7 @@ class Project < ActiveRecord::Base repository.raw_repository.write_ref('HEAD', "refs/heads/#{branch}") repository.copy_gitattributes(branch) repository.after_change_head + ProjectCacheWorker.perform_async(self.id, [], [:commit_count]) reload_default_branch else errors.add(:base, "Could not change HEAD: branch '#{branch}' does not exist") |