From b9601ca4c440ee30958e4a8e7960b2e065996bd1 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 9 May 2026 00:02:12 +0200 Subject: [PATCH] chore: apply formatting --- lua/git/object.lua | 5 +---- lua/git/util.lua | 7 ++++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lua/git/object.lua b/lua/git/object.lua index 34b3bda..867a24e 100644 --- a/lua/git/object.lua +++ b/lua/git/object.lua @@ -170,10 +170,7 @@ end ---@return boolean ok local function populate(buf, r, rev, state, rev_sha) local rev_str = rev:format() - local stdout = util.git( - { "cat-file", "-p", rev_str }, - { cwd = r.worktree } - ) + local stdout = util.git({ "cat-file", "-p", rev_str }, { cwd = r.worktree }) if not stdout then return false end diff --git a/lua/git/util.lua b/lua/git/util.lua index f590d01..c14e0e6 100644 --- a/lua/git/util.lua +++ b/lua/git/util.lua @@ -199,7 +199,12 @@ end ---@return string? function M.exec(cmd, opts) opts = opts or {} - local sys_opts = { cwd = opts.cwd, stdin = opts.stdin, text = true } + local sys_opts = { + cwd = opts.cwd, + stdin = opts.stdin, + env = opts.env, + text = true, + } if opts.on_exit then vim.system(cmd, sys_opts, vim.schedule_wrap(opts.on_exit))