Fetch all good known branches
[scm/meta/git.git] / scripts / fetch-gerrit-project-info.sh
index 57e5c63..47b5b0a 100755 (executable)
@@ -1,8 +1,13 @@
 #!/bin/sh
 
+if [ -f 'branches' ]; then
+       EXTRA_BRANCHES=""
+       for br in `grep -E "^B: .+" branches | cut -d " " -f 2`; do
+               EXTRA_BRANCHES="$EXTRA_BRANCHES -b $br"
+       done
+fi
+
 ssh review.tizen.org -p 29418 gerrit ls-projects \
        --format json -d -t --type all \
-       -b tizen -b tizen_2.0 \
-       -b tizen_2.1 -b tizen_2.2 \
-       -b refs/meta/config -b master \
+       -b refs/meta/config -b master $EXTRA_BRANCHES \
        -t -d > gerrit-project-info-`date +"%Y%m%d%H%M"`.json