mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
Sort branches from the oldest
This commit is contained in:
@@ -345,7 +345,7 @@ def rmdir(path):
|
||||
|
||||
|
||||
def git_branch_contains(cod, commit):
|
||||
cmd = ["git", "branch", "-r", "--contains", commit]
|
||||
cmd = ["git", "branch", "-r", "--contains", commit, "--sort", "-committerdate"]
|
||||
out, err = execute_cmd(cmd, cwd=cod, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
branch = out.strip().split("/")[1]
|
||||
if " -> " in branch:
|
||||
|
||||
Reference in New Issue
Block a user