aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:44:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:44:31 -0300
commitde706ad09146608ec89ed1cc0a742b4eb967cf24 (patch)
tree5f6ccff38c242a9e3df10543c4b351a4fa879392
parentf48ac6329f1ffada4088184ff646136a5adfc865 (diff)
downloadhydra-de706ad09146608ec89ed1cc0a742b4eb967cf24.tar.gz
hydra-de706ad09146608ec89ed1cc0a742b4eb967cf24.tar.bz2
Honor config/repository/ignore at init action
-rwxr-xr-xshare/hydra/init4
1 files changed, 4 insertions, 0 deletions
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