Skip to content

Commit 57932be

Browse files
committed
remove unused function
1 parent a6ea3c5 commit 57932be

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

.github/actions/release-branches/release-branches.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88

99
OLDEST_SUPPORTED_MAJOR_VERSION = 2
1010

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-
2111
def main():
2212

2313
parser = argparse.ArgumentParser()

0 commit comments

Comments
 (0)