Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
0b71e438
Unverified
Commit
0b71e438
authored
Oct 12, 2022
by
miles
Committed by
GitHub
Oct 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(git): `experimental.system-git-client` can't be set using environment variable
Resolves: #6722
parent
0ffe91c0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/poetry/vcs/git/backend.py
+2
-2
tests/integration/test_utils_vcs_git.py
+7
-0
No files found.
src/poetry/vcs/git/backend.py
View file @
0b71e438
...
...
@@ -366,8 +366,8 @@ class Git:
def
is_using_legacy_client
()
->
bool
:
from
poetry.config.config
import
Config
legacy_client
:
bool
=
(
Config
.
create
()
.
get
(
"experimental"
,
{})
.
get
(
"system-git-client"
,
False
)
legacy_client
:
bool
=
Config
.
create
()
.
get
(
"experimental.system-git-client"
,
False
)
return
legacy_client
...
...
tests/integration/test_utils_vcs_git.py
View file @
0b71e438
...
...
@@ -111,6 +111,13 @@ def remote_default_branch(remote_default_ref: bytes) -> str:
return
remote_default_ref
.
decode
(
"utf-8"
)
.
replace
(
"refs/heads/"
,
""
)
# Regression test for https://github.com/python-poetry/poetry/issues/6722
def
test_use_system_git_client_from_environment_variables
():
os
.
environ
[
"POETRY_EXPERIMENTAL_SYSTEM_GIT_CLIENT"
]
=
"true"
assert
Git
.
is_using_legacy_client
()
def
test_git_local_info
(
source_url
:
str
,
remote_refs
:
FetchPackResult
,
remote_default_ref
:
bytes
)
->
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment