fix(git): fetch commit from origin or local to check if branch was changed. See #1549

This commit is contained in:
Folke Lemaitre 2024-06-26 07:14:42 +02:00
parent 6d60dc3c05
commit 28e435b7f3
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ M.branch = {
return true return true
end end
local branch = assert(Git.get_branch(plugin)) local branch = assert(Git.get_branch(plugin))
return Git.get_commit(plugin.dir, branch) return Git.get_commit(plugin.dir, branch, true)
end, end,
run = function(self) run = function(self)
local args = { local args = {