Empty output of svn update in hook script
From: Borek Bernard <borekb_at_gmail.com>
Date: Wed, 10 Jun 2009 14:58:04 +0200
I'm running Apache 2.2 server (Windows) with SVN 1.6.2 and want to update my production server after each commit. Therefore, I've set up a post-commit hook like this:
svn update \\myserver\livefolder
When I execute this post-commit.bat script on command line, it works fine. However, when the hook script gets executed by Apache, my production server isn't updated. To help debug the issue, this is how I amended the script:
echo %time% > mylog.txt
Normally, in mylog.txt file, I should see something like
13:44:11.91
which I indeed do when the script is run from the command line but when I run it via the commit operation, I can see only the timestamp. Isn't it weird that the svn update doesn't output anything? Not even "updated to revision XYZ"? At the same time, I think the command doesn't crash because all the subsequent lines (if there are any) are executed just fine.
Even more curiously, when I add some other server like \\testserver\testlocation to the script (after the failing production server), it gets updated fine.
Any ideas?
Thanks,
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
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.