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
ff346c01
Commit
ff346c01
authored
May 06, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check git version in gitlab:check
parent
a735ce2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+15
-0
No files found.
lib/tasks/gitlab/check.rake
View file @
ff346c01
...
...
@@ -24,6 +24,7 @@ namespace :gitlab do
check_init_script_up_to_date
check_satellites_exist
check_redis_version
check_git_version
finished_checking
"GitLab"
end
...
...
@@ -663,4 +664,18 @@ namespace :gitlab do
puts
"FAIL. Please update gitlab-shell to v
#{
required_version
}
"
.
red
end
end
def
check_git_version
print
"Git version >= 1.7.10 ? ... "
if
run_and_match
(
"git --version"
,
/git version 1.7.10.\d/
)
puts
"yes"
.
green
else
puts
"no"
.
red
try_fixing_it
(
"Update your git to a version >= 1.7.10"
)
fix_and_rerun
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