-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Auto retrieve git branch name when no rev/branch is specified on git url (fix #3366) #4386
Conversation
30d85ad
to
8a3be8e
Compare
dfb3eee
to
c31df61
Compare
@abn , could you review this pull request? |
This doesn't resolve #3366 for those of us who edit |
@grimmer0125 thank you for your contribution. I believe the upcoming changes now work with the tests (#4604). I am not sure if all the changes here are required. Let me know if I am missiong something. |
Steps to reproduce this are given here: #3366 (comment) |
@joooeey , thank you for listing the detail. For your "edit pyproject.toml directly" case, the root cause is poetry will use the hard-code |
The below message is weird that I don't see any merge conflict locally. |
The issue seems to have been fixed in the meantime. Closing. |
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. |
Pull Request Check List
Resolves: #3366
As a result, if you use poetry add
poetry add git+ssh://[email protected]/demo.git
, thepyproject.toml
will includeThis pull request relies on python-poetry/poetry-core#192 which is merged to master branch of poetry-core yet. Currently, this PR is using mocker.patch for
poetry.core.vcs.git.Git.get_current_branch
. But it actually needs a new release of poetry-core including python-poetry/poetry-core#185 to take effect.