Fetch all good known branches
[scm/meta/git.git] / scripts / fetch-gerrit-project-info.sh
1 #!/bin/sh
2
3 if [ -f 'branches' ]; then
4         EXTRA_BRANCHES=""
5         for br in `grep -E "^B: .+" branches | cut -d " " -f 2`; do
6                 EXTRA_BRANCHES="$EXTRA_BRANCHES -b $br"
7         done
8 fi
9
10 ssh review.tizen.org -p 29418 gerrit ls-projects \
11         --format json -d -t --type all \
12         -b refs/meta/config -b master $EXTRA_BRANCHES \
13         -t -d > gerrit-project-info-`date +"%Y%m%d%H%M"`.json