From 14a789d67cb40c596911a33ed7b22a8c338403d7 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 3 Jun 2013 17:33:52 +0200 Subject: [PATCH] add a comment on how to specify several branches to be handled by git-slave.sh --- scripts/git-slave.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.43.0