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

checkout between similar Combination can leave stale "HEAD detached at" status. #162

Open
ndhaller opened this issue May 10, 2023 · 0 comments
Assignees

Comments

@ndhaller
Copy link
Contributor

"edkrepo checkout" between two combo with similar tags does not update the "HEAD detached at " message for the repo.

Create three tags on a repo, tag_a , tag_b, tag_a2, where tag_a and tag_a2 are associated to the same commit.
Create three Combination in a manifest, combo_a, combo_b, and combo_a2 that use the tags above.

Checkout combo_a , then combo_a2, and check status:

edkrepo checkout combo_a
edkrepo checkout combo_a2
edkrepo status 

edkrepo status (and git status) shows "HEAD detached at tag_a", functionally correct, but unexpected for combo_a2.

Checkout combo_a , combo_b, then combo_a2, and check status:

edkrepo checkout combo_a
edkrepo checkout combo_b
edkrepo checkout combo_a2
edkrepo status 

edkrepo status (and git status) shows "HEAD detached at tag_a2" as expect for combo_a2.

Similar behavior when running just git commands below:

git checkout tag_a
git checkout tag_a2
git status

Tested on git version 2.39.1.windows.1

@ashedesimone ashedesimone self-assigned this Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants