fix(git): use nul char as separator for git status

This commit is contained in:
Folke Lemaitre 2025-02-04 19:08:37 +01:00
parent e3c5944421
commit 8e0dfd2856
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 7 additions and 2 deletions

View file

@ -106,6 +106,7 @@ function M.status(opts, ctx)
"status",
"-uall",
"--porcelain=v1",
"-z",
}
if opts.ignored then
table.insert(args, "--ignored=matching")
@ -116,6 +117,7 @@ function M.status(opts, ctx)
return require("snacks.picker.source.proc").proc({
opts,
{
sep = "\0",
cwd = cwd,
cmd = "git",
args = args,