]> gitweb.fluxo.info Git - hydra.git/commitdiff
Honor config/repository/ignore at init action
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 19:44:31 +0000 (16:44 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 19:44:31 +0000 (16:44 -0300)
share/hydra/init

index d3ec70f0e054b9a5c5d51ffae714e71084bedc64..0b6ef956f56cef3adf7d05781e492cccfdc2b3a2 100755 (executable)
@@ -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