From de706ad09146608ec89ed1cc0a742b4eb967cf24 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 20 Feb 2017 16:44:31 -0300 Subject: Honor config/repository/ignore at init action --- share/hydra/init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/hydra/init b/share/hydra/init index d3ec70f..0b6ef95 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -49,6 +49,10 @@ if [ ! -z "$REMOTE" ]; then # Initialize only the required repositories for repo in $BASEREPOS; do + if [ -e "$HYDRA_FOLDER/config/repository/ignore/$repo" ]; then + continue + fi + # There is a superproject, so we try to initialize submodules if [ -e '.gitmodules' ] && git submodule | grep -q " $repo$"; then git submodule update --init --recursive $repo -- cgit v1.2.3