Skip to content

Commit

Permalink
fix: Use remote of branch rather than first remote in list (#246)
Browse files Browse the repository at this point in the history
Co-authored-by: linrongbin16 <[email protected]>
  • Loading branch information
tvsfx and linrongbin16 authored Sep 19, 2024
1 parent a71ac7d commit b10e793
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 @@ -367,7 +367,7 @@ local function get_branch_remote(cwd)
return nil
end

if #remotes >= 1 then
if #remotes == 1 then
return remotes[1]
end

Expand Down

0 comments on commit b10e793

Please sign in to comment.