Pre-commit hook problem
From: BRAMAN, JULIA M (JSC-ER711) <julia.m.braman_at_nasa.gov>
Date: Wed, 19 May 2010 11:48:21 -0500
Hi,
#!/bin/sh
REPOS="$1"
# Make sure that the log message contains some text.
$SVNLOOK log -t "$TXN" "$REPOS" | \
# All checks passed, so allow the commit.
The paths are correct for my system, and I've successfully tested the functionality using existing revisions by replacing the -t flag with the -r flag for svnlook. The extension has been changed from .tmpl to .sh and the permissions for both the directory and the file are correct (executable by all). However, when I test this by committing a revision with no log message from my TortoiseSVN client (1.6.8, and svn 1.6.11), the commit happens no problem. Checking the TortoiseSVN docs says that server-side hook scripts should still work. I have no client side hook scripts.
Any idea what I'm missing?? Any help is much appreciated.
Julia Braman
|
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.