Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Passing trigger in with HEAD ref creates a branch called HEAD on CircleCI #53

Open
nickgsc opened this issue Dec 20, 2017 · 0 comments
Open

Comments

@nickgsc
Copy link

nickgsc commented Dec 20, 2017

Spent quite a bit of time tracking this down with CircleCI. We started getting mysterious build failures with a warning like this when attempting to check out:

warning: refname 'HEAD' is ambiguous.
fatal: Ambiguous object name: 'HEAD'.
Exited with code 128

It turns out we had an earlier build that one of our devs triggered using the circleci-cli with HEADas the branch argument passed to the trigger command. This did not get interpolated to the actual HEAD ref, and instead created a branch in CircleCI with this name. This build failed with the same ambiguous object error, but the result of this build got cached which made downstream builds also fail because they still had the local branch with this name.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant