: nply/git-summary

commit 5fbbabd5627359151574aeac9220f6fd5891566e
parent f8ebbd759b4f395475786628de953c1e741b4bda
Author: Timendum <timedum@gmail.com>
Date: Tue, 28 Jul 2020 09:57:39 +0200

Follow symlink

Finds also symilinked repositories
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-summary b/git-summary
@@ -277,9 +277,9 @@ list_repos () {
 
   local find_cmd
   if [ $deeplookup -eq 0 ]; then
-    find_cmd="find $1 -maxdepth 2 -type d -name .git -print0"
+    find_cmd="find -L $1 -maxdepth 2 -type d -name .git -print0"
   else
-    find_cmd="find $1 -type d -name .git -print0"
+    find_cmd="find -L $1 -type d -name .git -print0"
   fi
 
 	while IFS=  read -r -d $'\0'; do