Update project repository size and commit count during import:repos task
Closes #3848
This commit is contained in:
parent
54d0ff982b
commit
1d410ac96a
|
@ -3,6 +3,7 @@ Please view this file on the master branch, on stable branches it's out of date.
|
||||||
v 8.3.0 (unreleased)
|
v 8.3.0 (unreleased)
|
||||||
- Bump gollum-lib to 4.1.0 (Stan Hu)
|
- Bump gollum-lib to 4.1.0 (Stan Hu)
|
||||||
- Fix broken group avatar upload under "New group" (Stan Hu)
|
- Fix broken group avatar upload under "New group" (Stan Hu)
|
||||||
|
- Update project repositorize size and commit count during import:repos task (Stan Hu)
|
||||||
- Fix API setting of 'public' attribute to false will make a project private (Stan Hu)
|
- Fix API setting of 'public' attribute to false will make a project private (Stan Hu)
|
||||||
- Handle and report SSL errors in Web hook test (Stan Hu)
|
- Handle and report SSL errors in Web hook test (Stan Hu)
|
||||||
- Fix: Assignee selector is empty when 'Unassigned' is selected (Jose Corcuera)
|
- Fix: Assignee selector is empty when 'Unassigned' is selected (Jose Corcuera)
|
||||||
|
|
|
@ -64,6 +64,8 @@ namespace :gitlab do
|
||||||
|
|
||||||
if project.persisted?
|
if project.persisted?
|
||||||
puts " * Created #{project.name} (#{repo_path})".green
|
puts " * Created #{project.name} (#{repo_path})".green
|
||||||
|
project.update_repository_size
|
||||||
|
project.update_commit_count
|
||||||
else
|
else
|
||||||
puts " * Failed trying to create #{project.name} (#{repo_path})".red
|
puts " * Failed trying to create #{project.name} (#{repo_path})".red
|
||||||
puts " Errors: #{project.errors.messages}".red
|
puts " Errors: #{project.errors.messages}".red
|
||||||
|
|
Loading…
Reference in New Issue