-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #8429: rudder-dev merge --test can fail #157
Fixes #8429: rudder-dev merge --test can fail #157
Conversation
Commit modified |
1f5b6b1
to
b5f866c
Compare
b5f866c
to
5a6127a
Compare
Commit modified |
5a6127a
to
00e7c61
Compare
Commit modified |
This is a test |
@@ -846,6 +848,8 @@ def insert_line(filename, regex, text): | |||
# fetch a branch from a PR | |||
def fetch_branch_from_pr(pr): | |||
branch_name = pr.remote_branch() | |||
# PR can be rebased, first destroy existing branch | |||
shell("git branch -D " + branch_name + " 2>/dev/null || true", "Cleaning existing fetched branch") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not be branch_name that should be deleted but a branch created for the fetch (branch_name_remote ? )
Commit modified |
00e7c61
to
1fcf620
Compare
@@ -846,7 +848,8 @@ def insert_line(filename, regex, text): | |||
# fetch a branch from a PR | |||
def fetch_branch_from_pr(pr): | |||
branch_name = pr.remote_branch() | |||
shell("git fetch --update-head-ok " + pr.repo() + " " + branch_name + ":" + branch_name, "Fetching branch from remote " + pr.repo()) | |||
# PR can be rebased, first destroy existing branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commentis noit accurate, we don't destroy branch but force update on a dedicated branch
Commit modified |
1fcf620
to
16018fa
Compare
Can be merged :) |
https://www.rudder-project.org/redmine/issues/8429