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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
dbb1cb30
Commit
dbb1cb30
authored
Aug 13, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7441 from bbodenmiller/patch-7
add git config --global core.autocrlf check
parents
9f3a5970
ecd33c9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+4
-2
No files found.
lib/tasks/gitlab/check.rake
View file @
dbb1cb30
...
@@ -318,7 +318,8 @@ namespace :gitlab do
...
@@ -318,7 +318,8 @@ namespace :gitlab do
options
=
{
options
=
{
"user.name"
=>
"GitLab"
,
"user.name"
=>
"GitLab"
,
"user.email"
=>
Gitlab
.
config
.
gitlab
.
email_from
"user.email"
=>
Gitlab
.
config
.
gitlab
.
email_from
,
"core.autocrlf"
=>
"input"
}
}
correct_options
=
options
.
map
do
|
name
,
value
|
correct_options
=
options
.
map
do
|
name
,
value
|
run
(
%W(git config --global --get
#{
name
}
)
).
try
(
:squish
)
==
value
run
(
%W(git config --global --get
#{
name
}
)
).
try
(
:squish
)
==
value
...
@@ -330,7 +331,8 @@ namespace :gitlab do
...
@@ -330,7 +331,8 @@ namespace :gitlab do
puts
"no"
.
red
puts
"no"
.
red
try_fixing_it
(
try_fixing_it
(
sudo_gitlab
(
"git config --global user.name
\"
#{
options
[
"user.name"
]
}
\"
"
),
sudo_gitlab
(
"git config --global user.name
\"
#{
options
[
"user.name"
]
}
\"
"
),
sudo_gitlab
(
"git config --global user.email
\"
#{
options
[
"user.email"
]
}
\"
"
)
sudo_gitlab
(
"git config --global user.email
\"
#{
options
[
"user.email"
]
}
\"
"
),
sudo_gitlab
(
"git config --global core.autocrlf
\"
#{
options
[
"core.autocrlf"
]
}
\"
"
)
)
)
for_more_information
(
for_more_information
(
see_installation_guide_section
"GitLab"
see_installation_guide_section
"GitLab"
...
...
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