Skip to content

Commit e91110d

Browse files
committed
fix(git): Nil value indexing when commit retry fails (fixes #400)
1 parent 73cb92d commit e91110d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/diffview/vcs/adapters/git/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ GitAdapter.fh_retry_commit = async.wrap(function(self, rev_arg, state, opt, call
10641064
await(async.timeout(10))
10651065
end
10661066

1067-
if job.code ~= 0 then
1067+
if not data or not (job:is_success()) then
10681068
callback({
10691069
name = "job_fail",
10701070
msg = table.concat(utils.vec_join(err, job.stderr), "\n"),

0 commit comments

Comments
 (0)