Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Newline in file name can't be handled by web frontend
Summary
Commits with a newline in a file name can't be handled by the gitlab web fontend.
Steps to reproduce
Example repository: https://gitlab.com/akoehn/newline-test
Produced like this:
[Create new Repository on gitlab, I used the one above]
XXX:/tmp$ git clone git@gitlab.com:akoehn/newline-test.git
XXX:/tmp$ cd newline-test/
XXX:/tmp/newline-test$ ls
XXX:/tmp/newline-test$ touch test.txt
XXX:/tmp/newline-test$ cat >> test.txt
test
XXX:/tmp/newline-test$ git add test.txt
XXX:/tmp/newline-test$ git add test.txt
XXX:/tmp/newline-test$ git commit -m "first commit, no newline"
[master (Basis-Commit) d568ee4] first commit, no newline
1 file changed, 1 insertion(+)
create mode 100644 test.txt
XXX:/tmp/newline-test$ cat >> $'file-with\nnewline.txt'
file with newline in file name
XXX:/tmp/newline-test$ git add 'file-with
newline.txt'
XXX:/tmp/newline-test$ git commit -m "file with newline"
[master d43ef12] file with newline
1 file changed, 1 insertion(+)
create mode 100644 "file-with\nnewline.txt"
XXX:/tmp/newline-test$ git push
Open Repository URL in your browser, receive Error 500
The intended result would be to have no error :-)
Output of checks
This bug happens on GitLab.com