Commit ddea4f8
fix: quote glob patterns in zoekt-git-index to prevent shell expansion
The ALWAYS_INDEX_FILE_PATTERNS environment variable accepts glob patterns
like **/*.sum,**/*.lock. When these patterns are passed to zoekt-git-index
via Node's exec(), the shell expands them before passing to the command,
causing errors.
This fix wraps the glob patterns in double quotes to prevent shell
expansion, allowing the patterns to be passed literally to zoekt-git-index.
Fixes SOU-247
Co-authored-by: michael <michael@sourcebot.dev>1 parent 59ee6a5 commit ddea4f8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments