redmine问题

问题1: 404 版本库中不存在该条目和(或)其修订版本。

1.1 GIT库:

参考:http://stackoverflow.com/questions/13000247/redmine-gitolite-issue-with-repository-permissions-and-more

I managed to get it working pointing the original repo to Redmine, since both sit on the same machine, by following some simple steps:

1. Add a repository on Redmine with the original repo of gitolite's repository. The path would be something like /home/git/repositories/my-repo.git.

2, Initially, Redmine doesn't have any permissions to read the repository, so we fix the problem by adding the Redmine user (usually www-data or apache) to the git group by running usermod -a -G git www-data (be aware of your server's configuration, because that can be a little different, according to how you configurated gitolite.

3. Change the UMASK property on the .gitolite.rc file, from the default value of 0077 to 0022, the equivalent of 755 (rwxr-xr-x) for directories and 644 (rw-r--r--) for files.

4. For existing repos, you might need to run a chmod -R g+rX

If you still experience the permissions trouble with Redmine, where it opens a 404instead of the repo on the repository tab, you might have to run a chmod -R g+rX on the whole /home/git/repositories, in order to make sure the Redmine user can read all the way through the repos.

1.2 SVN库

1.2.1 此时product.log报异常:

Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list>

1. 确保版本库的SVN中,使用正确的SVN 用户名和密码

如不能解决,2. 在redmine服务器执行:
svn list --xml "https://22.222.111.222:8443/svn/myproject/"@HEAD --username "myname" --password "mypasswd" --no-auth-cache --non-interactive
如果不行,后面再加上--trust-server-cert

转载于:https://www.cnblogs.com/myibm/p/5939604.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值