We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ea3c5 commit 57932beCopy full SHA for 57932be
.github/actions/release-branches/release-branches.py
@@ -8,16 +8,6 @@
8
9
OLDEST_SUPPORTED_MAJOR_VERSION = 2
10
11
-# Runs git with the given args and returns the stdout.
12
-# Raises an error if git does not exit successfully (unless passed
13
-# allow_non_zero_exit_code=True).
14
-def run_git(*args, allow_non_zero_exit_code=False):
15
- cmd = ['git', *args]
16
- p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17
- if not allow_non_zero_exit_code and p.returncode != 0:
18
- raise Exception(f'Call to {" ".join(cmd)} exited with code {p.returncode} stderr: {p.stderr.decode("ascii")}.')
19
- return p.stdout.decode('ascii')
20
-
21
def main():
22
23
parser = argparse.ArgumentParser()
0 commit comments