How to prevent checkout of a deleted branch? #1671
Unanswered
efenderbosch-atg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In building service B, we need some resources from service A. First we look for a branch in service A that matches the current branch of the build for service B. If that fails, we checkout a well known branch. This works correctly when the matching branch does not exist.
It fails, or rather doesn't do what we want, when the matching branch exists, but is then merged and deleted. The
checkout-other-repo-part-1
step below will still find the deleted branch and it never makes it to the 2nd checkout.Is there any way I can prevent this?
edit: more info
I had deleted the branch using the GitHub UI, but it was still showing up w/
git branch --list --remote ...
. I've now deleted it withgit push origin --delete ...
and that has fixed the problem, it now fails through properly to the 2nd checkou.Beta Was this translation helpful? Give feedback.
All reactions