From bbc63795488a595ce5255e404ea28c526e18cc72 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Thu, 11 Jul 2024 19:15:12 -0700 Subject: [PATCH] init git repo for plugins --- tools/snap/build_remote.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/snap/build_remote.py b/tools/snap/build_remote.py index ef139c2ac..9865fe83f 100755 --- a/tools/snap/build_remote.py +++ b/tools/snap/build_remote.py @@ -103,6 +103,10 @@ def _build_snap( workspace = CERTBOT_DIR else: workspace = join(CERTBOT_DIR, target) + # init and commit git repo in workspace + subprocess.run(['git', 'init'], capture_output=True, check=True, cwd=workspace) + subprocess.run(['git', 'add', '-A'], capture_output=True, check=True, cwd=workspace) + subprocess.run(['git', 'commit', '-m', 'init'], capture_output=True, check=True, cwd=workspace) build_success = False retry = 3