From: Silvio Rhatto Date: Mon, 20 Feb 2017 19:44:31 +0000 (-0300) Subject: Honor config/repository/ignore at init action X-Git-Tag: 0.2.6~1 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=de706ad09146608ec89ed1cc0a742b4eb967cf24;p=hydra.git Honor config/repository/ignore at init action --- 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