diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-05-19 13:58:31 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2016-05-19 13:58:31 +0200 |
commit | 00452efe6c748d0e39444dd16d9eb2ed7cc4e64a (patch) | |
tree | 29c6abfaa80cde1f0aef29260ba16bc800199204 /git/cmd.py | |
parent | bebc4f56f4e9a0bd3e88fcca3d40ece090252e82 (diff) | |
parent | 89ade7bfff534ae799d7dd693b206931d5ed3d4f (diff) | |
download | gitpython-00452efe6c748d0e39444dd16d9eb2ed7cc4e64a.tar.gz |
Merge pull request #431 from guyzmo/fix-opt_arg-order
Fix order of operators before executing the git command
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -13,6 +13,8 @@ import threading import errno import mmap +from collections import OrderedDict + from contextlib import contextmanager import signal from subprocess import ( @@ -783,6 +785,7 @@ class Git(LazyMixin): def transform_kwargs(self, split_single_char_options=True, **kwargs): """Transforms Python style kwargs into git command line options.""" args = list() + kwargs = OrderedDict(sorted(kwargs.items(), key=lambda x: x[0])) for k, v in kwargs.items(): if isinstance(v, (list, tuple)): for value in v: |