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

Re: hook scripts line endings

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Wed, 16 Nov 2011 09:39:54 +0000

On 16 November 2011 09:30, ujr <ujr_at_gmx.net> wrote:
> Hi,
> I usually let TSVN create a new repository on a Linux samba share, which will be accessed later by svn:// protocol.
> The hooks-subdir, unfortunately, contains *.tmpl files which have DOS line endings (\r\n). This gives error code 255, as soon as such a script is renamed (removed .tmpl) and made executable (chmod).
> Although it may seem normal that the Windows shell extensions creates DOS files, it should be emphasized that the *.tmpl files are /bin/sh scripts to be executed on Linux. So they need to have Linux line endings.
>
> I want to suggest two things:
> 1) New version of TSVN created hook script templates with Linux line endings.
> 2) If an error message of 255 is received, TSVN could write a hint about checking line endings. This would be a real time saver :-)
> Thanks

The repository is created by the subversion library, not TSVN. As it
is the Windows build of Subversion then it uses DOS line endings.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2878805
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-11-16 10:40:03 CET

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