Skip to content

Commit

Permalink
Merge pull request #2 from thisisrandy/bad-branch
Browse files Browse the repository at this point in the history
Don't guess branch if not specified explicitly
  • Loading branch information
thisisrandy authored Sep 16, 2022
2 parents 967536e + a6a3a58 commit ce3f712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rplugin/python3/outdatedplugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def check_for_updates(self, args: List):
for plug in g_plugs.values():
update_commands.append("git -C %s remote update > /dev/null" % plug["dir"])
calculate_updates_commands.append(
"git -C %s rev-list HEAD..origin/%s --count"
% (plug["dir"], plug["branch"] if plug["branch"] else "master")
"git -C %s rev-list HEAD..origin%s%s --count"
% (plug["dir"], "/" if plug["branch"] else "", plug["branch"])
)

update_commands.append("wait")
Expand Down

0 comments on commit ce3f712

Please sign in to comment.