Skip to content

Commit

Permalink
fix(tasks): always set updated on checkout. Change default logging to…
Browse files Browse the repository at this point in the history
… 3 days
  • Loading branch information
folke committed Nov 29, 2022
1 parent 0db98bf commit 5bcdddc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ M.log = {
local target = assert(Git.get_target(self.plugin))
table.insert(args, info.commit .. ".." .. target.commit)
else
table.insert(args, "--since=" .. (opts.since or "7 days ago"))
table.insert(args, "--since=" .. (opts.since or "3 days ago"))
end

self:spawn("git", {
Expand Down Expand Up @@ -138,6 +138,10 @@ M.checkout = {
end

if not self.plugin._.cloned and info.commit == target.commit and info.branch == target.branch then
self.plugin._.updated = {
from = info.commit,
to = info.commit,
}
return
end

Expand Down

0 comments on commit 5bcdddc

Please sign in to comment.