Skip to content

Commit

Permalink
feat: fix empty left file in review
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeLagrange committed Dec 10, 2024
1 parent 1119796 commit 03fa8b6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lua/octo/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,10 @@ function M.get_file_at_commit(path, commit, cb)
enable_recording = true,
command = "git",
args = { "show", string.format("%s:%s", commit, path) },
on_exit = vim.schedule_wrap(function(j_self, _, _)
local output = table.concat(j_self:result(), "\n")
local stderr = table.concat(j_self:stderr_result(), "\n")
cb(vim.split(output, "\n"), vim.split(stderr, "\n"))
end),
}
job:start()
local result = job:sync()
local output = table.concat(result, "\n")
cb(vim.split(output, "\n"))
end

function M.in_pr_repo()
Expand Down

0 comments on commit 03fa8b6

Please sign in to comment.