Skip to content
Snippets Groups Projects
Commit 1c9670d9 authored by Tim Jaacks's avatar Tim Jaacks
Browse files

commit_and_push: do not pass branch

Branch can be implicitly determined via the repo.
parent 767a4e2e
No related branches found
No related tags found
1 merge request!189Multiple integration pipelines
...@@ -158,9 +158,10 @@ def list_commits(commits): ...@@ -158,9 +158,10 @@ def list_commits(commits):
def commit_and_push( def commit_and_push(
project: Project, repo: Repo, branch, message, name, email, less_verbose=False project: Project, repo: Repo, message, name, email, less_verbose=False
): ):
"""Commit and push to a repo branch""" """Commit and push to a repo branch"""
branch = repo.head.reference
author = Actor(name, email) author = Actor(name, email)
repo.index.commit(message, author=author, committer=author) repo.index.commit(message, author=author, committer=author)
print(repo.git.log("--oneline", "-n", "5")) print(repo.git.log("--oneline", "-n", "5"))
......
...@@ -347,7 +347,6 @@ def main(): ...@@ -347,7 +347,6 @@ def main():
integration_commit = common.commit_and_push( integration_commit = common.commit_and_push(
manifest_project["project"], manifest_project["project"],
manifest_project["repo"], manifest_project["repo"],
manifest_project["branch"],
manifest_project["message"], manifest_project["message"],
gitlab.user.username, gitlab.user.username,
gitlab.user.email, gitlab.user.email,
......
...@@ -178,7 +178,6 @@ def integrate_into_manifest( ...@@ -178,7 +178,6 @@ def integrate_into_manifest(
manifest_revision = common.commit_and_push( manifest_revision = common.commit_and_push(
manifest_project, manifest_project,
manifest_repo, manifest_repo,
integration_branch,
message, message,
gitlab.user.username, gitlab.user.username,
gitlab.user.email, gitlab.user.email,
......
...@@ -383,7 +383,6 @@ def update_submodule_and_include_ref( ...@@ -383,7 +383,6 @@ def update_submodule_and_include_ref(
integration_commit = common.commit_and_push( integration_commit = common.commit_and_push(
project, project,
project_repo, project_repo,
integration_branch_name,
message, message,
gitlab.user.username, gitlab.user.username,
gitlab.user.email, gitlab.user.email,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment