X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fgit-slave.sh;h=178e9e98076cd8d44f62d0caf0b3f24ef8d630cf;hb=58e228c02ef369906ed294068d1e2f1b0c5b574b;hp=b2c0008256ef1963987dfff3a5485101a4638677;hpb=565081bd9f3c39d65156469fff72cc2408b71fdf;p=infrastructure.git diff --git a/scripts/git-slave.sh b/scripts/git-slave.sh index b2c0008..178e9e9 100755 --- a/scripts/git-slave.sh +++ b/scripts/git-slave.sh @@ -30,10 +30,13 @@ #[remote "origin"] # url = https://github.com/cdwertmann/rvm-rpm.git # fetch = refs/heads/*:refs/heads/* + +COMMAND=$(basename $0) + function slave_repo () { git_slave=$1; shift cd $git_slave - git fetch --all --tags -q + git fetch --all --tags -q || echo "$COMMAND failed in repo $git_slave" } for slave_dir in "$@"; do slave_repo $slave_dir; done