Skip to content

Commit

Permalink
fix(default): skip git roots outside the working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 13, 2024
1 parent daae913 commit 925b11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ async function findUnknownRepos(cfg: RootConfig, packages: PackageMap) {

let changed = false
for (let rootId of Array.from(gitRoots)) {
if (cfg.repos[rootId]) {
if (cfg.repos[rootId] || rootId.startsWith('..')) {
continue
}
const cwd = join(cfg.root, rootId)
Expand Down

0 comments on commit 925b11a

Please sign in to comment.