don't interpret HEAD as a faulty branch#6874
Closed
dimbleby wants to merge 1 commit intopython-poetry:masterfrom
Closed
don't interpret HEAD as a faulty branch#6874dimbleby wants to merge 1 commit intopython-poetry:masterfrom
dimbleby wants to merge 1 commit intopython-poetry:masterfrom
Conversation
4 tasks
abn
added a commit
to abn/poetry
that referenced
this pull request
Nov 14, 2022
This change ensures that when ref `HEAD` is specified, it is not incorrectly resolved to `refs/head/HEAD`. `HEAD` is not treated as a branch, and correctly resolved from the ref spec. Resolves: python-poetry#7024 Closes: python-poetry#6874
Member
abn
added a commit
to abn/poetry
that referenced
this pull request
Feb 23, 2024
This change ensures that when ref `HEAD` is specified, it is not incorrectly resolved to `refs/head/HEAD`. `HEAD` is not treated as a branch, and correctly resolved from the ref spec. Resolves: python-poetry#7024 Closes: python-poetry#6874
abn
added a commit
to abn/poetry
that referenced
this pull request
Feb 23, 2024
This change ensures that when ref `HEAD` is specified, it is not incorrectly resolved to `refs/head/HEAD`. `HEAD` is not treated as a branch, and correctly resolved from the ref spec. Resolves: python-poetry#7024 Closes: python-poetry#6874
abn
added a commit
to abn/poetry
that referenced
this pull request
Feb 25, 2024
This change ensures that when ref `HEAD` is specified, it is not incorrectly resolved to `refs/head/HEAD`. `HEAD` is not treated as a branch, and correctly resolved from the ref spec. Resolves: python-poetry#7024 Closes: python-poetry#6874
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
abn
added a commit
to abn/poetry
that referenced
this pull request
Mar 2, 2024
This change ensures that when ref `HEAD` is specified, it is not incorrectly resolved to `refs/head/HEAD`. `HEAD` is not treated as a branch, and correctly resolved from the ref spec. Resolves: python-poetry#7024 Closes: python-poetry#6874
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
with this requirement
and using dulwich as the git client, we get:
What seems to happen is we go through the branch
poetry/src/poetry/vcs/git/backend.py
Lines 69 to 75 in 16046d9
I don't really understand what's going on in this code, maybe someone who does can contribute a testcase
Another fix that I tried was
which solved this case, but did quite a bit more damage to the unit tests.