Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
6fd58ee4
Commit
6fd58ee4
authored
Dec 03, 2016
by
Markus Koller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rake task update_commit_count
parent
b8d8fd70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
lib/tasks/gitlab/update_commit_count.rake
lib/tasks/gitlab/update_commit_count.rake
+0
-20
No files found.
lib/tasks/gitlab/update_commit_count.rake
deleted
100644 → 0
View file @
b8d8fd70
namespace
:gitlab
do
desc
"GitLab | Update commit count for projects"
task
update_commit_count: :environment
do
projects
=
Project
.
where
(
commit_count:
0
)
puts
"
#{
projects
.
size
}
projects need to be updated. This might take a while."
ask_to_continue
unless
ENV
[
'force'
]
==
'yes'
projects
.
find_each
(
batch_size:
100
)
do
|
project
|
print
"
#{
project
.
name_with_namespace
.
color
(
:yellow
)
}
... "
unless
project
.
repo_exists?
puts
"skipping, because the repo is empty"
.
color
(
:magenta
)
next
end
project
.
update_commit_count
puts
project
.
commit_count
.
to_s
.
color
(
:green
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment