redmine用git repo镜像脚本
当用git来管理代码,后台用gitolite,redmine来管理项目,redmine中可以结合git来参看git提交信息时,非常有用.
以下代码参照了http://blog.buginception.com/blog/2012/04/02/redmine-use-git-code-review
代码如下:
#!/bin/bash set -x if [ "$1" = "" ]; then echo "Usage: $0 [repo]" exit 1 fi REPO=$1.git GIT_BASE=/home/git/repositories MIRROR_PATH=/home/jxb/git-mirrors REPO_PATH=$MIRROR_PATH/$REP...