Commit blocked by pre-commit hook (exit code 255) with no output.
From: foven <effoven_at_gmail.com>
Date: Tue, 1 Dec 2015 11:30:12 -0500
Hi,
This is my first time posting here. Hopefully I'm posting to the right
I am not subscribed to the list and would appreciate being CC:ed
I have already posted a description of my issue here:
I'm configuring Phabricator to host a repository and almost everything
This error seems to occur independent of the actual script. It happens
#!/bin/sh
echo "testing" >&2
I would expect this script to fail due to the error code and provide
Based on a discussion in the #svn IRC channel, I tried the following:
sudo svn mkdir file:///var/repo/SVN/TestFolder -m "Add test folder"
with the following output:
svn: E165001: Commit blocked by pre-commit hook (exit code 1) with
So this implies that the hook can work and may not be at fault at all.
This seems to cause the vcs user to sudo to the phd user and run:
svnserve -t --tunnel-user=foven
I really have no idea what is causing this issue at this point.
[phd_at_phabricator ~]$ env -i /var/repo/SVN/hooks/pre-commit
and this:
[phd_at_phabricator ~]$ env - /var/repo/SVN/hooks/pre-commit
(which I think should be identical) and both ways work.
I can even run the script this way as the tunneled user. I'm not sure
I have seen where SELinux has caused this problem for others in the
Any help is greatly appreciated.
|
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.