0

我正在尝试制作一个提交后脚本,当我将更改推送到服务器时,它将更新“登台”(客户端实际上可以访问的地方)。

但问题是,当 post-commit 被调用时(我 sudo su'ed 到 svn 用户),它得到:

[svn@beautifulserver.com: / ]# svn update /home/my-beautiful-home/www
Authentication realm: <http://svn.my-beautiful-url.com:80> BEAUTIFUL SVN
Password for 'svn': 

所以 post-commit 简单地崩溃了:

Warning: post-commit hook failed (exit code 255) with no output.

关于如何绕过这个的任何想法?有没有办法在命令行中指定用户名和密码?

谢谢!

4

1 回答 1

2

svn help update显示:

Global options:
  --username ARG           : specify a username ARG
  --password ARG           : specify a password ARG
  --no-auth-cache          : do not cache authentication tokens
  --non-interactive        : do no interactive prompting
  --trust-server-cert      : accept unknown SSL server certificates without
                             prompting (but only with '--non-interactive')
于 2010-11-03T15:07:10.583 回答