From d0f58c7535eec02bdcaf94e638c5f46588b2962a Mon Sep 17 00:00:00 2001 From: Timendum Date: Mon, 21 Oct 2019 12:18:07 +0200 Subject: [PATCH] Follow symlinks Add `-L` option to find invocation, to follow symlinks --- git-summary | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-summary b/git-summary index 4d3b615..69d4e07 100755 --- a/git-summary +++ b/git-summary @@ -269,9 +269,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