代码之家  ›  专栏  ›  技术社区  ›  Tommy B.

使用SVN更新另一个目录的SVN post commit

  •  0
  • Tommy B.  · 技术社区  · 15 年前

    但问题是,当调用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.
    

    你知道怎么绕过这个吗?有没有办法在命令行中指定用户名和密码?

    谢谢!

    1 回复  |  直到 15 年前
        1
  •  2
  •   ColinM    15 年前

    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')