From e5e0cd6b3ffe0e9ee872b77b58aed6c7316b1cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Tue, 13 Apr 2021 08:46:54 +0200 Subject: [PATCH] Make sure to stage updated plugins not just added or removed plugins --- update_submodules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_submodules.py b/update_submodules.py index a28e220..0e692e6 100755 --- a/update_submodules.py +++ b/update_submodules.py @@ -27,6 +27,7 @@ def update(_name, url=None): subprocess.run(["git", "fetch", "--all", "--tags"], cwd=_name, check=True) subprocess.run(["git", "checkout", "-f", "-B", "master", "origin/master"], cwd=_name, check=True) + subprocess.run(["git", "add", _name], check=True) fetched.append(_name) @@ -105,4 +106,3 @@ if removed: commit_message.append("- {}".format(plugin)) subprocess.run(["git", "commit", "-m", "\n".join(commit_message)]) -subprocess.run(["git", "submodule", "update", "--init"])