0

サーバーに変更をプッシュすると、「ステージング」(クライアントが実際にアクセスできる場所)を更新するコミット後のスクリプトを作成しようとしています。

しかし、問題は、post-commitが呼び出され(svnユーザーにsudo su'ed)、次のようになることです。

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

したがって、ポストコミットは単に次のようにクラッシュします。

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 に答える