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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
acd80bdc
Commit
acd80bdc
authored
Apr 15, 2015
by
Vinnie Okada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new rake task
Add a task that checks repository integrity with `git fsck`.
parent
ed94cde2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
CHANGELOG
CHANGELOG
+1
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+17
-0
No files found.
CHANGELOG
View file @
acd80bdc
...
@@ -15,6 +15,7 @@ v 7.10.0 (unreleased)
...
@@ -15,6 +15,7 @@ v 7.10.0 (unreleased)
- Don't leak existence of group or project via search.
- Don't leak existence of group or project via search.
- Fix bug where Wiki pages that included a '/' were no longer accessible (Stan Hu)
- Fix bug where Wiki pages that included a '/' were no longer accessible (Stan Hu)
- Fix bug where error messages from Dropzone would not be displayed on the issues page (Stan Hu)
- Fix bug where error messages from Dropzone would not be displayed on the issues page (Stan Hu)
- Add a rake task to check repository integrity with `git fsck`
- Add ability to configure Reply-To address in gitlab.yml (Stan Hu)
- Add ability to configure Reply-To address in gitlab.yml (Stan Hu)
- Move current user to the top of the list in assignee/author filters (Stan Hu)
- Move current user to the top of the list in assignee/author filters (Stan Hu)
- Fix broken side-by-side diff view on merge request page (Stan Hu)
- Fix broken side-by-side diff view on merge request page (Stan Hu)
...
...
lib/tasks/gitlab/check.rake
View file @
acd80bdc
...
@@ -687,6 +687,23 @@ namespace :gitlab do
...
@@ -687,6 +687,23 @@ namespace :gitlab do
end
end
end
end
namespace
:repo
do
desc
"GITLAB | Check the integrity of the repositories managed by GitLab"
task
check: :environment
do
namespace_dirs
=
Dir
.
glob
(
File
.
join
(
Gitlab
.
config
.
gitlab_shell
.
repos_path
,
'*'
)
)
namespace_dirs
.
each
do
|
namespace_dir
|
repo_dirs
=
Dir
.
glob
(
File
.
join
(
namespace_dir
,
'*'
))
repo_dirs
.
each
do
|
dir
|
puts
"
\n
Checking repo at
#{
dir
}
"
system
(
*
%w(git fsck)
,
chdir:
dir
)
end
end
end
end
# Helper methods
# Helper methods
##########################
##########################
...
...
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