Skip to content

Commit 8674db3

Browse files
committed
Ensures that log --all only gets a single worktree
1 parent d1fb6b7 commit 8674db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/env/node/git/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ export class Git {
755755
}
756756

757757
if (all) {
758-
params.push('--all');
758+
params.push('--all', '--single-worktree');
759759
}
760760

761761
if (ref && !GitRevision.isUncommittedStaged(ref)) {
@@ -834,7 +834,7 @@ export class Git {
834834
}
835835

836836
if (all) {
837-
params.push('--all');
837+
params.push('--all', '--single-worktree');
838838
}
839839

840840
// Can't allow rename detection (`--follow`) if `all` or a `startLine` is specified

0 commit comments

Comments
 (0)