Citat Enrico Straube <enrico.straube@cbb-software.com>:
> Hello,
>
> I have a small perl script that incremental backup the repository from
> the current revision to the last backuped revision. I can test that in
> the shell and it works fine. But when I include that script in the
> hook file "post-commit" than nothing will happened. The hook script
> can be executed and has the same rights then the other files in the
> repository. Also the perl script have the same rights. Here are the
> hook script:
>
> ,----- [ post-commit ]
> | #!/bin/sh
> |
> | # POST-COMMIT HOOK
> | #
> | # The post-commit hook is invoked after a commit. Subversion runs
> | # this hook by invoking a program (script, executable, binary, etc.)
> | # named 'post-commit' (for which this file is a template) with the
> | # following ordered arguments:
> | #
> | # [1] REPOS-PATH (the path to this repository)
> | # [2] REV (the number of the revision just committed)
> | #
> |
> | REPOS="$1"
> | REV="$2"
> |
> | /usr/local/bin/backup-since-rev.pl "$REPOS" "$REV"
> |
> `-----
>
> Any ideas?
just an idea. try as the very first thing in your perl script to
chdir() to for
example "/tmp" - then at least you know your starting point ;)
./allan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 18 08:53:23 2005