Svn eol-style

From EggeWiki
Revision as of 23:49, 14 July 2009 by Brianegge (talk | contribs) (Created page with 'The svn:eol-style can be a bit controversial. It's implementation is quite complicated, and it can cause a number of issues - mostly when set to native. For '''bash''' files,…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The svn:eol-style can be a bit controversial. It's implementation is quite complicated, and it can cause a number of issues - mostly when set to native.

For bash files, the eol style should always be LF. This is because a bash script whether running under Cygwin or a real unix does not handle CR's in the file.

If you have carriage returns in your bash script, you'll be greeted with a message like: <geshi lang="bash"> line 2: $'\r': command not found </geshi>

To fix this, change the eol-style to LF for your bash scripts.

<geshi> svn pset svn:eol-style LF *.sh svn commit -m "changed EOL style to LF" </geshi>

After the commit, the files will be updated with the correct line ending.