[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ignore / override svn:eol-style=native while checkout / update

From: B. Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Sun, 5 Jul 2009 16:08:28 +0200

On Sun, Jul 5, 2009 at 05:42, Cyrus Summers<xzs217_at_gmail.com> wrote:
> HI,
>
> I recently encountered an issue with svn:eol-style set to native.
> While checking out / updating, svn changes all the files with property
> svn:eol-style=native the line endings to CRLF since I'm using Windows,
> the problem is that I also use Cygwin tools to build projects, and the
> shell script interpreter sh only recognize LF as the line ending as in
> *nix systems, the extra CRs are treated as error. So my current
> solution is to change all the files the line endings back to its
> original using dos2unix...

Don't use svn:eol-style=native for *nix shell scripts, use
svn:eol-style=LF instead. That way they'll always have LF line
endings, regardless of which platform/client is in use when they are
checked out. I would hope that anyone editing *nix shell scripts on
windows is competent enough to use an editor other than notepad.

// ben

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2368131

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-05 16:09:34 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.