From ab15d5108202e1ff8fe91204ce0dc419c45d48af Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 11 Nov 2013 19:00:14 +0200 Subject: create-bundle: Re-add repo exlcude support, needed for android.git. --- bundles/create-bundle | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bundles') diff --git a/bundles/create-bundle b/bundles/create-bundle index 81a9595..a518a8b 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" SUBTREES="$BASE/lava" +# grep pattern of repository paths to exclude +#EXCLUDE="repo\.git" +EXCLUDE="" function create_bundle() { git bundle create clone.bundle master 1>/dev/null @@ -30,6 +33,10 @@ for repo_path in $SUBTREES do for repository in $(find $repo_path -type d -name "*.git" -prune) do + if [ -n "$EXCLUDE" ] && echo $repository | grep -q $EXCLUDE; then + echo Skipping $repository + continue + fi cd $repository create_bundle done -- cgit v1.2.3