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

Re: ^M Appends to every line?

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Wed, 23 Feb 2011 10:39:52 -0600

On 2/23/2011 10:19 AM, Christopher D Haakinson wrote:
> I have SVN up and running and things are working well, except when
> editing shell scripts from windows.
> My server is RHEL5-based and I will have clients connecting from linux
> and windows. Linux commits work great, and even some times from windows.
> However some times I commit a file from Windows(running tortoiseSVN and
> Komodo EDIT) it corrupts the script and adds ^M to the end of every
> line, often times ruining the structure of the file too.
> Is there a way to disable this or do I have to run a dos2unix script
> after every commit to remove them?

Long version:

Short version: set the svn:eol-style property to native on the files
where you want subversion to manage line endings. Your client may have
a list of file suffixes where this would be set automatically.

   Les Mikesell
Received on 2011-02-23 17:40:28 CET

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.