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?
--
Regards,
Enrico Straube
mailto:enrico.straube@cbb-software.com
- application/pgp-signature attachment: stored
Received on Fri Feb 18 08:30:53 2005