mirror of
https://github.com/zoriya/jj.nvim.git
synced 2026-08-06 19:26:12 +00:00
fix(diff): revset must be shell-escaped (#53)
Co-authored-by: Julien Moutinho <julm+jj-nvim@sourcephile.fr>
This commit is contained in:
co-authored by
Julien Moutinho
parent
1fd8faed4b
commit
868c3ce2e1
+1
-1
@@ -8,7 +8,7 @@ local utils = require("jj.utils")
|
||||
--- @param path string The file path
|
||||
--- @return table lines The file content
|
||||
local function get_file_content(rev, path)
|
||||
local cmd = string.format("jj file show -r %s %s", rev, vim.fn.shellescape(path))
|
||||
local cmd = string.format("jj file show -r %s %s", vim.fn.shellescape(rev), vim.fn.shellescape(path))
|
||||
local content = vim.fn.system(cmd)
|
||||
local success = vim.v.shell_error == 0
|
||||
if success then
|
||||
|
||||
Reference in New Issue
Block a user