aboutsummaryrefslogtreecommitdiff
path: root/bundles
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-11 21:41:35 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-11 21:46:11 +0200
commitf1d433437fa6156cca0a818a8d2ce8bfa19f4bb0 (patch)
tree0ae3c8191a068f7725061fde09bd9cca8dcea66b /bundles
parent90c6f31c58eb352ea4932bd9ede850fd2b28cffc (diff)
create-bundle: Allow to define branch patterns to put into bundles.
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/create-bundle6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/create-bundle b/bundles/create-bundle
index ef084fc..5f9255e 100755
--- a/bundles/create-bundle
+++ b/bundles/create-bundle
@@ -21,6 +21,9 @@ BASE=/srv/repositories
# `/srv/repositories/foo/bar', just add `$BASE/foo/bar':
# SUBTREE="$BASE/lava $BASE/foo/bar"
# EXCLUDE: grep pattern of repository paths to exclude
+EXCLUDE=""
+# BRANCHES: Which branches to put into bundle
+BRANCHES="master"
HOSTTYPE=$(cat /etc/linaro/hosttype)
if [ "$HOSTTYPE" = "git-main" ]; then
@@ -28,6 +31,7 @@ if [ "$HOSTTYPE" = "git-main" ]; then
elif [ "$HOSTTYPE" = "git-android" ]; then
SUBTREES="$BASE"
EXCLUDE="repo\.git"
+ BRANCHES="master refs/heads/linaro*"
else
echo "Unknown hosttype. Make sure /etc/linaro/hosttype is set up."
exit 1
@@ -39,7 +43,7 @@ if [ "$1" == "--dry-run" ]; then
fi
function create_bundle() {
- git bundle create clone.bundle.tmp master 1>/dev/null
+ git bundle create clone.bundle.tmp $BRANCHES 1>/dev/null
mv clone.bundle.tmp clone.bundle
}