From a6a3a58bb7a94023ff1608c0a1ad142e32a45ef9 Mon Sep 17 00:00:00 2001 From: Randy West Date: Thu, 15 Sep 2022 19:54:46 -0700 Subject: [PATCH] Don't guess branch if not specified explicitly --- rplugin/python3/outdatedplugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rplugin/python3/outdatedplugins.py b/rplugin/python3/outdatedplugins.py index 48d91bd..924f6ad 100644 --- a/rplugin/python3/outdatedplugins.py +++ b/rplugin/python3/outdatedplugins.py @@ -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")