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
  • #2291

Closed
Open
Created Dec 17, 2012 by Administrator@rootOwner

ACE changing line endings in .SH file to DOS mode

Created by: petergus

i have some bash scripts in my repo and when i edit with the inline editor and then pull the changes to the server two strange things happen.

  1. it replace ALL the text, not just the lines changed (git diff show all as minus and then adding back everything. i believe this is related to 2.
  2. it changes the mode to dos. when i run the shell script again (after pulling the new changes) it get "/bin/bash^M: bad interpreter" running :set ff=unix in vim fixes it. also the permissions are changed (the file was 770 and after pull becomes something like 755)

all my machines involved are linux of mac so no chances to get dos. and for this example everything was happening on the server, ubuntu 10.04.

Assignee
Assign to
Time tracking