Skip to content
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

[action] [PR:8289] [sonic-frr/Makefile]: Checkout gracefully if branch exists already. #15434

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

mssonicbld
Copy link
Collaborator

This is useful to avoid "branch exists" error while rebuild FRR.

Signed-off-by: Praveen Chaudharypchaudhary@linkedin.com

Why I did it

If branch exist already, today FRR build fails. Branch may exist on rebuild.
With this PR, we will Checkout branch gracefully if branch exists already.

How I did it

Use git checkout $(FRR_BRANCH) || git checkout -b $(FRR_BRANCH) origin/$(FRR_BRANCH) in src/sonic-frr/Makefile.

How to verify it

Rebuild works fine. Fresh build works fine as well.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

…#8289)

If branch exist already, today FRR build fails. Branch may exist on rebuild.
With this PR, we will Checkout branch gracefully if branch exists already.

Signed-off-by: Praveen Chaudhary<pchaudhary@linkedin.com>
@mssonicbld
Copy link
Collaborator Author

Original PR: #8289

@mssonicbld mssonicbld merged commit 9ae7e3a into sonic-net:202106 Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant