From: Thierry Parmentelat Date: Mon, 3 Jun 2013 15:33:52 +0000 (+0200) Subject: add a comment on how to specify several branches to be handled by git-slave.sh X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=14a789d67cb40c596911a33ed7b22a8c338403d7;p=infrastructure.git add a comment on how to specify several branches to be handled by git-slave.sh --- diff --git a/scripts/git-slave.sh b/scripts/git-slave.sh index 470044f..b2c0008 100755 --- a/scripts/git-slave.sh +++ b/scripts/git-slave.sh @@ -24,10 +24,16 @@ # Typical usage in cron # */3 * * * * /root/bin/git-slave.sh -q /git-slave/*.git +# you might wish to tweak the repo's config, in particular the remote section +# so as to define the proper mappings for your needs +# e.g. from git.onelab.eu:/git-slave/rvm-rpm.git +#[remote "origin"] +# url = https://github.com/cdwertmann/rvm-rpm.git +# fetch = refs/heads/*:refs/heads/* function slave_repo () { git_slave=$1; shift cd $git_slave - git fetch -q + git fetch --all --tags -q } for slave_dir in "$@"; do slave_repo $slave_dir; done