Auto retrieve git branch name when no rev/branch is specified on git url (fix #3366)#4386
Auto retrieve git branch name when no rev/branch is specified on git url (fix #3366)#4386grimmerk wants to merge 4 commits into
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://git@github.demo/demo.git, thepyproject.tomlwill 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.