-
Notifications
You must be signed in to change notification settings - Fork 295
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
Git Mirroring doesn't respect BUILDKITE_REFSPEC
#2555
Comments
Thanks for raising this issue @jkmassel. I agree that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One of our projects uses a rather tricky Git mirroring approach that allows agents external to our network to gain access to our code via a GitHub.com mirror.
For this to work, we set
BUILDKITE_REFSPEC
in theenvironment
hook – this ensures that subsequent steps don't try to pull from the "magic" PR branches used by GitHub, and it works quite well. Unfortunately, the Git Mirroring logic breaks this by trying to checkout the PR branch (which doesn't exist on the mirror).The only workaround we've found is to add the following to our
environment
hook:It'd be really great if we didn't need to maintain this ourselves, but for that to happen we'd need to ensure that the mirroring system respects the
BUILDKITE_REFSPEC
setting – IINM, the line linked above should evaluate tofalse
ifBUILDKITE_REFSPEC
is present – I suspect that would resolve the problem.The text was updated successfully, but these errors were encountered: