svn post-commit:更新工作副本失败
我有一个提交后挂钩,应该像这样更新工作副本,
/usr/bin/svn update /home/xxxx/htdocs/devel
不幸的是失败了。 (subversion 应该作为 www-data 运行,因为我正在使用 apache。) 尝试这样做:
su www-data
env - /xxxx/hooks/post-commit /xxxx/$REPO $REV
结果是:
Authentication realm: <svn://xxxx:3690> weird-looking-code
Password for 'www-data':
然后我尝试输入一些帐户/密码,但系统帐户(root,...)和保护 svn 存储库的 apache 用户文件中的帐户都不起作用。
我什至尝试过,
chown -R www-data:www-data /home/xxxx/htdocs/devel
但这也不起作用。
有什么建议吗?
I have a post-commit hook that should update a working copy like this
/usr/bin/svn update /home/xxxx/htdocs/devel
That unfortunately fails. (subversion should run as www-data, as I'm using apache with it.)
Trying this:
su www-data
env - /xxxx/hooks/post-commit /xxxx/$REPO $REV
results in:
Authentication realm: <svn://xxxx:3690> weird-looking-code
Password for 'www-data':
I then tried to type in some accounts/passwords, but neither the system accounts (root, ...) nor the accounts in the apache user file that protects the svn repository are working.
I even tried to
chown -R www-data:www-data /home/xxxx/htdocs/devel
but that doesn't work either.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该通过手动执行来找出允许哪个用户执行命令
/usr/bin/svn update /home/xxxx/htdocs/devel
。之后,您可以在提交后挂钩中使用以下行:...。
You should find out which user is allowed to execute the command
/usr/bin/svn update /home/xxxx/htdocs/devel
by executing it manually. After that you can use the line:...in your post-commit hook.