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
branch name of HEAD appears #43
Comments
interesting find! yeah this goes along with the set of fallback commands from #42 (comment) afaik, this should work as-is already if this script hadn't force checked out a specific hash after checking out the branch. from my understanding of git, force checking out a hash is an explicit attempt to say "I want to be detached from any branch", so reidentifying this hash as the same hash as the HEAD of a branch is a bit of a cheat against the intention of the current git state from my perspective. I think my preferred solution here would be to throw an error (and do the same in the healthcheck) if the branch comes back as |
yeah that does make sense.
you can see it in the checkout action of https://github.com/exterkamp/lighthouse-ci-action/commit/21869d5a3234f0d69d8a30027f4455c8057669e5/checks?check_suite_id=299822077 we looked and there doesn't appear to be much configurability around this. another option would be to use one of these |
Sweet yeah let's just use |
was developing on a git branch
branch/new-branch
. Yes just like that :)Uploaded some data to canary server here https://github.com/exterkamp/lighthouse-ci-action/commit/21869d5a3234f0d69d8a30027f4455c8057669e5/checks?check_suite_id=299822077
but you can see it was identified as branch HEAD
https://lhci-canary.herokuapp.com/app/projects/3e1ad4e7-689b-4340-83f4-409c84308f89
i notice something weird about this checkout and
git branch
is odd.. and rev-parse doesnt seem to like it.i guess the currentBranch command just isn't getting it due to the clone/checkout style?? dunno.
but i tried the git command that is used in my bash/fish prompt and it succeeds
in my bash prompt it uses that terrible thing and then seds out
's|^refs/heads/||'
but i guess it could do the same withremotes/origin/
? :)anyway GIT IS GREAT! amirite
cc @exterkamp
The text was updated successfully, but these errors were encountered: