Skip to content

Commit 00452ef

Browse files
committed
Merge pull request #431 from guyzmo/fix-opt_arg-order
Fix order of operators before executing the git command
2 parents bebc4f5 + 89ade7b commit 00452ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/cmd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import errno
1414
import mmap
1515

16+
from collections import OrderedDict
17+
1618
from contextlib import contextmanager
1719
import signal
1820
from subprocess import (
@@ -783,6 +785,7 @@ def transform_kwarg(self, name, value, split_single_char_options):
783785
def transform_kwargs(self, split_single_char_options=True, **kwargs):
784786
"""Transforms Python style kwargs into git command line options."""
785787
args = list()
788+
kwargs = OrderedDict(sorted(kwargs.items(), key=lambda x: x[0]))
786789
for k, v in kwargs.items():
787790
if isinstance(v, (list, tuple)):
788791
for value in v:

0 commit comments

Comments
 (0)
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