Skip to content

Respect autocrlf setting when creating/updating file through web UI

Douwe Maan requested to merge dm-quick-fix-web-edit-new-lines into master

Fixes gitlab-com/www-gitlab-com#1152 (closed)

Bug introduced by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237, which refactored file creation etc to no longer use Blob.commit, which had some custom logic relating to CRLF handling that went missing.

The proper fix would be to refactor Repository again to consistently use (logic from) Blob.commit, which will come in a next MR that would be too big for a patch release..

Merge request reports