We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac211b1 commit e8d0107Copy full SHA for e8d0107
1 file changed
lua/tinygit/commands/push-pull.lua
@@ -33,7 +33,7 @@ local function pushCmd(opts)
33
vim.schedule_wrap(function(result)
34
local out = vim.trim((result.stdout or "") .. (result.stderr or ""))
35
out = out:gsub("\n%s+", "\n") -- remove padding
36
- local commitRange = out:match("%x+%.%.%x+")
+ local commitRange = out:match("%x+%.%.%x+") ---@type string|nil
37
-- force-push `+` would get md-lhighlight
38
local ft = opts.forceWithLease and "text" or "markdown"
39
@@ -57,7 +57,7 @@ local function pushCmd(opts)
57
end
58
59
-- post-push actions
60
- if config.openReferencedIssues and not opts.forceWithLease then
+ if config.openReferencedIssues and not opts.forceWithLease and commitRange then
61
openReferencedIssues(commitRange)
62
63
updateStatusline()
0 commit comments