Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6589

Closed
Open
Created Mar 21, 2014 by Administrator@rootOwner

500 error on automerge_check (maybe because of core.autocrlf being set to input)

Created by: msouth

  1. Summary: When viewing a merge request, the check for automerge causes an ISE

  2. Steps to reproduce:

    1. Add, commit, push a crlf file from linux on a branch
    2. Create a merge request for that branch
    3. View the merge request
  3. Expected behavior: a message saying whether the branch can be automatically merged

  4. Observed behavior

  5. 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")
  1. 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.

(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

  1. 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

Assignee
Assign to
Time tracking