[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: Wayne Johnson <wayne_at_zk.com>
Date: Wed, 16 Nov 2011 11:16:50 -0800

> -----Original Message-----
> From: ujr [mailto:ujr_at_gmx.net]
> Sent: Wednesday, November 16, 2011 1:50 AM
> To: users_at_tortoisesvn.tigris.org
> Subject: hook scripts line endings
>
> 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.

This may fix your problem but will cause problems for everyone who uses
TSVN (a Windows tool) on Windows machines.

Wayne

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2878990

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-11-16 20:17:07 CET

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