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

Re: Add text to commit log

From: Marc Haisenko <haisenko_at_comdasys.com>
Date: Tue, 11 Mar 2008 13:32:21 +0100

On Tuesday 11 March 2008, Erling Wegger Linde wrote:
> post-commit:
>
> #!/bin/sh
>
> REPOS="$1"
> REV="$2"
>
> mkdir "kjdfkasag"
>

So, where do you expect this directory "kjdfkasag" will be located ? And do
you know you have any access rights there ? Make that an absolute path to be
sure.

> And the script it refers to:
> post-commit-expand.pl
>
> #!/usr/bin/perl
>
> open (MYFILE, '>>test.txt');
> print MYFILE " Test..\n";
> close (MYFILE);

Again, do you know the current working dir for sure ? Do you know that you may
create a file in there ? As the user executing the script right now ? I'd
write to /tmp/test.txt instead, making sure that file has been chmod'ed
0666...

HTH,
        Marc

-- 
Marc Haisenko
Comdasys AG
Rüdesheimer Str. 7
80686 München
Germany
Tel.: +49 (0)89 548 433 321
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-11 13:32:50 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.