Skip to content

Commit b10e793

Browse files
tvsfxlinrongbin16
andauthored
fix: Use remote of branch rather than first remote in list (#246)
Co-authored-by: linrongbin16 <linrongbin16@outlook.com>
1 parent a71ac7d commit b10e793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/gitlinker/git.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ local function get_branch_remote(cwd)
367367
return nil
368368
end
369369

370-
if #remotes >= 1 then
370+
if #remotes == 1 then
371371
return remotes[1]
372372
end
373373

0 commit comments

Comments
 (0)