Skip to content

Commit

Permalink
fix(roots): roots where not computed per platform
Browse files Browse the repository at this point in the history
  • Loading branch information
robertohuertasm committed Nov 30, 2022
1 parent f9284d7 commit 3effce9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/opener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,11 @@ export class Opener {
: process.platform === 'darwin'
? 'gitFoldersMac'
: 'gitFolders';
const roots =
config.get<string[]>(prop) || config.get<string[]>('gitFolders') || [];
return roots;
const platformRoots = config.get<string[]>(prop);
if (platformRoots && platformRoots.length) {
return platformRoots;
}
return config.get<string[]>('gitFolders') || [];
}

private getMaxDepthFromConfig(): number {
Expand Down

0 comments on commit 3effce9

Please sign in to comment.