Skip to content

Commit 3257880

Browse files
committed
git-all: follow symlinks at least once when scanning
1 parent 203b17d commit 3257880

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-all

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ Main {
152152
end
153153

154154
first = true
155-
Dir.glob(File.join dir, '**', '.git') do |path|
155+
# Recursively search for .git directories, following symlinks once
156+
Dir.glob File.join(dir, '**', '*', '**', '.git') do |path|
156157
if first
157158
puts 'done'
158159
first = false

0 commit comments

Comments
 (0)