Skip to content

Commit

Permalink
Merge pull request #13 from zschreur/zschreur/push-urspttswvmxx
Browse files Browse the repository at this point in the history
bugfix: set cwd when running a jj command
  • Loading branch information
zschreur authored Jun 28, 2024
2 parents f87ae52 + a803708 commit c070513
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/telescope-jj/conflicts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ return function(opts)
end

local cmd = { "jj", "resolve", "--list" }
local cmd_output = utils.get_os_command_output(cmd)
local cmd_output = utils.get_os_command_output(cmd, opts.cwd)

local results = {}
for _, str in ipairs(cmd_output) do
Expand Down
2 changes: 1 addition & 1 deletion lua/telescope-jj/diff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ return function(opts)
end

local cmd = { "jj", "diff", "--summary", "--no-pager" }
local cmd_output = utils.get_os_command_output(cmd)
local cmd_output = utils.get_os_command_output(cmd, opts.cwd)

local results = {}
for _, str in ipairs(cmd_output) do
Expand Down
2 changes: 1 addition & 1 deletion lua/telescope-jj/files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ return function(opts)
prompt_title = "Jujutsu Files",
__locations_input = true,
finder = finders.new_table({
results = utils.get_os_command_output(cmd),
results = utils.get_os_command_output(cmd, opts.cwd),
entry_maker = opts.entry_maker or make_entry.gen_from_file(opts),
}),
previewer = conf.file_previewer(opts),
Expand Down

0 comments on commit c070513

Please sign in to comment.