Keep an eye on those revision descriptions.

fix(#1): plugin crashes when unknown directory is `cwd`'d

bpavuk.neocities.org 7d367459 0f5da0f4

verified
Changed files
+1 -1
lua
jj-log
+1 -1
lua/jj-log/init.lua
··· 28 28 29 29 local cmd = { "jj", "log", "-R", repo_root, "-r", "@", "-T", "description", "--no-graph", } 30 30 31 - vim.system(cmd, { text = true, cwd = vim.fs.dirname(current_file) }, function(obj) 31 + vim.system(cmd, { text = true, cwd = vim.fs.dirname(repo_root) }, function(obj) 32 32 if obj.code ~= 0 then 33 33 vim.api.nvim_buf_del_var(bufnr, "jj_desc") 34 34 return