mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 08:48:45 +01:00
python3-git: fix indent error
It fails to import anything from git/remote.py:
File "/path_to/python3-git-native/3.1.27-r0/GitPython-3.1.27/git/remote.py", line 700
url = Git.polish_url(url)
^
IndentationError: unexpected indent
(From OE-Core rev: 48633d8920210e55e0b9ee3004f0502f9f0eec48)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -291,7 +291,7 @@ index 59681bc..cea6b99 100644
|
||||
scmd = 'add'
|
||||
kwargs['insert_kwargs_after'] = scmd
|
||||
- repo.git.remote(scmd, name, Git.polish_url(url), **kwargs)
|
||||
+ url = Git.polish_url(url)
|
||||
+ url = Git.polish_url(url)
|
||||
+ if not allow_unsafe_protocols:
|
||||
+ Git.check_unsafe_protocols(url)
|
||||
+ repo.git.remote(scmd, "--", name, url, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user