From 57932be6d40f2cd95e2c7b6690bea3b6e58762cf Mon Sep 17 00:00:00 2001 From: nickfyson Date: Wed, 6 Dec 2023 11:49:17 +0000 Subject: [PATCH] remove unused function --- .github/actions/release-branches/release-branches.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/actions/release-branches/release-branches.py b/.github/actions/release-branches/release-branches.py index fcadd808d2..8e8bf37db5 100644 --- a/.github/actions/release-branches/release-branches.py +++ b/.github/actions/release-branches/release-branches.py @@ -8,16 +8,6 @@ OLDEST_SUPPORTED_MAJOR_VERSION = 2 -# Runs git with the given args and returns the stdout. -# Raises an error if git does not exit successfully (unless passed -# allow_non_zero_exit_code=True). -def run_git(*args, allow_non_zero_exit_code=False): - cmd = ['git', *args] - p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - if not allow_non_zero_exit_code and p.returncode != 0: - raise Exception(f'Call to {" ".join(cmd)} exited with code {p.returncode} stderr: {p.stderr.decode("ascii")}.') - return p.stdout.decode('ascii') - def main(): parser = argparse.ArgumentParser()