diff options
-rwxr-xr-x | bundles/create-bundle | 7 |
1 files changed, 7 insertions, 0 deletions
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 |