Skip to content
Snippets Groups Projects
Commit 0734756e authored by Douwe Maan's avatar Douwe Maan
Browse files

Convert CRLF newlines to LF when committing using the web editor.

parent 07956981
No related branches found
No related tags found
1 merge request!858Convert CRLF newlines to LF when committing using the web editor.
Pipeline #
Loading
Loading
@@ -8,6 +8,7 @@ v 7.13.0 (unreleased)
- Rename "Design" profile settings page to "Preferences".
- Allow users to customize their default Dashboard page.
- Update ssl_ciphers in Nginx example to remove DHE settings. This will deny forward secrecy for Android 2.3.7, Java 6 and OpenSSL 0.9.8
- Convert CRLF newlines to LF when committing using the web editor.
 
v 7.12.0 (unreleased)
- Fix Error 500 when one user attempts to access a personal, internal snippet (Stan Hu)
Loading
Loading
Loading
Loading
@@ -5,8 +5,13 @@ class Repository
 
def initialize(path_with_namespace, default_branch = nil, project = nil)
@path_with_namespace = path_with_namespace
@raw_repository = Gitlab::Git::Repository.new(path_to_repo) if path_with_namespace
@project = project
if path_with_namespace
@raw_repository = Gitlab::Git::Repository.new(path_to_repo)
@raw_repository.autocrlf = :input
end
rescue Gitlab::Git::Repository::NoRepository
nil
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment