500 error on automerge_check (maybe because of core.autocrlf being set to input)
Created by: msouth
-
Summary: When viewing a merge request, the check for automerge causes an ISE
-
Steps to reproduce:
- Add, commit, push a crlf file from linux on a branch
- Create a merge request for that branch
- View the merge request
-
Expected behavior: a message saying whether the branch can be automatically merged
-
Relevant logs and/or screenshots: Completed 500 Internal Server Error in 257ms
Grit::Git::CommandFailed (Command failed [1]: /usr/bin/git --git-dir=/home/git/gitlab-satellites/allops/machinedb/.git branch -D feature/api_logs
error: Cannot delete the branch 'feature/api_logs' which you are currently on.
[git@gitlabhost the_project]$ git diff > /tmp/x.diff warning: CRLF will be replaced by LF in public/javascripts/jquery.dump.js.
Viewing /tmp/x.diff shows a diff with every line changed from CRLF to LF
[git@gitlabhost the_project]$ git status
# On branch feature/api_logs
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: public/javascripts/jquery.dump.js
#
no changes added to commit (use "git add" and/or "git commit -a")
-
Output of checks
- Results of GitLab Application Check (
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
); we will only investigate if the tests are passing
Git version >= 1.7.10 ? ... no Try fixing it: Update your git to a version >= 1.7.10 from 1.7.1 Please fix the error above and rerun the checks.
- Results of GitLab Application Check (
(not adminning this box so I can't just do that)
* Version of GitLab you are running;
6.1.0 82f3446f * Add the last commit sha1 of the GitLab version you used to replicate the issue 6.1.0 82f3446f
- Possible fixes:
Issue #3982 discusses this a bit, and was resolved with 2d681c0d
I undid 2d681c0d, in the satellite directory /home/git/gitlab-satellites/my_group/the_project
[git@gitlabhost the_project]$ git config core.autocrlf false
[git@gitlabhost the_project]$ git config core.autocrlf
false
Then I deleted the branch with the "change" [git@gitlabhost the_project]$ git checkout __parking_branch Switched to branch '__parking_branch' [git@gitlabhost the_project]$ git branch -D feature/api_logs