From 5b27339b0d7da97743256e871757d54bf5159bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Ne=C4=8Das?= Date: Tue, 23 Jul 2019 12:43:24 +0200 Subject: [PATCH 1/8] Fix Git.transform_kwarg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kwargs were not transformed correctly if a value was set to 0 due to wrong if condition. Signed-off-by: František Nečas --- git/cmd.py | 2 +- git/test/test_git.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/git/cmd.py b/git/cmd.py index 64c3d480a..50b1e3212 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -893,7 +893,7 @@ def transform_kwarg(self, name, value, split_single_char_options): else: if value is True: return ["--%s" % dashify(name)] - elif value not in (False, None): + elif value is not False and value is not None: return ["--%s=%s" % (dashify(name), value)] return [] diff --git a/git/test/test_git.py b/git/test/test_git.py index 30a6a335e..4a189267e 100644 --- a/git/test/test_git.py +++ b/git/test/test_git.py @@ -86,6 +86,7 @@ def test_it_transforms_kwargs_into_git_command_arguments(self): assert_equal(["--max-count"], self.git.transform_kwargs(**{'max_count': True})) assert_equal(["--max-count=5"], self.git.transform_kwargs(**{'max_count': 5})) + assert_equal(["--max-count=0"], self.git.transform_kwargs(**{'max_count': 0})) assert_equal([], self.git.transform_kwargs(**{'max_count': None})) # Multiple args are supported by using lists/tuples From a34d515d181f095c477ab35ccae00412219fad42 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 14 Aug 2019 18:05:55 +0800 Subject: [PATCH 2/8] Bump version --- VERSION | 2 +- doc/source/changes.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ea4bd0fb3..1b5105df4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.13 +2.1.14 diff --git a/doc/source/changes.rst b/doc/source/changes.rst index b9f286384..e04b5ab71 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -2,6 +2,11 @@ Changelog ========= +2.1.14 - Bugfixes +================= + +Fix an issue with `transforming kwargs `_ passed to the `git` command. + 2.1.13 - Bring back Python 2.7 support ====================================== From 7539cd8fbbc8ac2a01d66875cecc4e7ac214f5dc Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 10:40:40 -0600 Subject: [PATCH 3/8] Fix requirements.txt formatting --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 63d5ddfe7..5eb87ac69 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -gitdb2 (>=2.0.0) +gitdb2>=2.0.0 From bcf9f1c5c63a9578b7f8108d6dbc69a80706e807 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 16 Feb 2020 12:36:59 -0600 Subject: [PATCH 4/8] Require gitdb2 <3 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5eb87ac69..d312d11bb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -gitdb2>=2.0.0 +gitdb2>=2,<3 From 09ac0a109fd3a032e19ccc3017a9e1c79cda057a Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 16 Feb 2020 12:48:16 -0600 Subject: [PATCH 5/8] v2.1.15 --- VERSION | 2 +- doc/source/changes.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 1b5105df4..67da95408 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.14 +2.1.15 diff --git a/doc/source/changes.rst b/doc/source/changes.rst index e04b5ab71..97ae82d6c 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -2,6 +2,11 @@ Changelog ========= +2.1.15 - Bugfixes +================= + +Fix requirements.txt formatting and version lock gitdb2 to <3 for Python 2 compatibility. + 2.1.14 - Bugfixes ================= From e3ba4a32d3f809f84df9a6416b22cdb7a4ac2fb8 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 17 Feb 2020 09:50:47 +0800 Subject: [PATCH 6/8] Change to USB-C yubikey --- Makefile | 2 +- git/ext/gitdb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ae74a0d80..c963dd7e6 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ release: clean force_release: clean git push --tags origin master python3 setup.py sdist bdist_wheel - twine upload -s -i byronimo@gmail.com dist/* + twine upload -s -i 763629FEC8788FC35128B5F6EE029D1E5EB40300 dist/* docker-build: docker build --quiet -t gitpython:xenial -f Dockerfile . diff --git a/git/ext/gitdb b/git/ext/gitdb index c0fd43b5f..5dd0f302f 160000 --- a/git/ext/gitdb +++ b/git/ext/gitdb @@ -1 +1 @@ -Subproject commit c0fd43b5ff8c356fcf9cdebbbbd1803a502b4651 +Subproject commit 5dd0f302f101e66d9d70a3b17ce0f379b4db214b From 8defbd88bf06677d6210f9b9e4d785826b44e939 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 17 Feb 2020 12:05:51 +0800 Subject: [PATCH 7/8] Bring gitdb submodule back to a version that supports python 2.x This should fix tests on travis. --- git/ext/gitdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/ext/gitdb b/git/ext/gitdb index 5dd0f302f..c0fd43b5f 160000 --- a/git/ext/gitdb +++ b/git/ext/gitdb @@ -1 +1 @@ -Subproject commit 5dd0f302f101e66d9d70a3b17ce0f379b4db214b +Subproject commit c0fd43b5ff8c356fcf9cdebbbbd1803a502b4651 From adec1daff779c9ff9cd9fd92eff70a3c9d2a350a Mon Sep 17 00:00:00 2001 From: marinkolulic <78700986+marinkolulic@users.noreply.github.com> Date: Wed, 10 Feb 2021 09:29:46 +0100 Subject: [PATCH 8/8] Update gitdb --- git/ext/gitdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/ext/gitdb b/git/ext/gitdb index c0fd43b5f..e45fd0792 160000 --- a/git/ext/gitdb +++ b/git/ext/gitdb @@ -1 +1 @@ -Subproject commit c0fd43b5ff8c356fcf9cdebbbbd1803a502b4651 +Subproject commit e45fd0792ee9a987a4df26e3139f5c3b107f0092 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy