LoginSignup
2
2

More than 5 years have passed since last update.

自前のRedmineで外部のGitリポジトリを追加してcrontabで更新する

Last updated at Posted at 2015-11-12

自前で用意しているRedmineでGitHubとかのリポジトリを監視させる。
通常のRedmineだとローカルディスクにあるGitリポジトリしか見えないので手元に --bare でクローン。

このあたりはこの記事で完璧にできる
http://qiita.com/n_slender/items/54cd282c140fadbbb322

shell> git clone --bare hoge@github.com/hoge.git

crontabに書いておく。
gitコマンドはディレクトリを潜って指定できないらしいのでcdさせる

 */5 * * * * cd /home/yousan/git/hoge.git; git fetch --all
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2