]> gitweb.fluxo.info Git - metadot.git/commitdiff
Do not follow any .git/modules folder
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Jun 2014 16:02:49 +0000 (13:02 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Jun 2014 16:02:49 +0000 (13:02 -0300)
metadot

diff --git a/metadot b/metadot
index e20d36bfdeb16aae5c88287e1bc50539a1608d4d..b9564abff8f0e30cdaa2bbb6fbb78c6d3266cb35 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -42,7 +42,7 @@ function metadot_backup {
 # Find contents of a module
 function metadot_find {
   local module="$1"
-  ( cd $MODULES/$module && find -name '*.link' -or -name '*.dot.link' ) | sed -e 's|./||'
+  ( cd $MODULES/$module && find -name '*.link' -or -name '*.dot.link' ) | grep -v '.git/modules' | sed -e 's|./||'
 }
 
 # Load a module