Skip to content

Commit

Permalink
fix: syntax error in lua for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ruifm committed Apr 13, 2021
1 parent 3b6a543 commit cc2e3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gitlinker/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function M.get_branch_remote()
end

-- try HEAD and last 50 parent commits
for i in 0, 50 do
for i = 0, 50 do
local revspec = "HEAD~" .. i
if is_rev_in_remote(revspec, remote) then return remote end

Expand Down

0 comments on commit cc2e3d2

Please sign in to comment.