diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-05-21 19:39:55 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-05-21 19:39:55 +0200 |
commit | 71cd409660bc5b8c211dc7c51afae481d822d593 (patch) | |
tree | f600d5ed40ad4ddf0c5126fe3cf4cd498ea394d9 /lib/git_python/git.py | |
parent | 30472cf3132b8c03e528b23d1c7533de740e28ab (diff) | |
download | gitpython-71cd409660bc5b8c211dc7c51afae481d822d593.tar.gz |
fixed errors in the test, two permission errors remaining, thx to mock?!?!
Also removed the shell_escape tests...
Diffstat (limited to 'lib/git_python/git.py')
-rw-r--r-- | lib/git_python/git.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/git_python/git.py b/lib/git_python/git.py index 8711c1fb..2cec4954 100644 --- a/lib/git_python/git.py +++ b/lib/git_python/git.py @@ -25,6 +25,7 @@ class Git(MethodMissingMixin): The command to execute """ print ' '.join(command) + print self.git_dir proc = subprocess.Popen(command, cwd = self.git_dir, stdout=subprocess.PIPE @@ -74,7 +75,8 @@ class Git(MethodMissingMixin): str """ opt_args = self.transform_kwargs(**kwargs) - args = opt_args + list(args) + ext_args = map(lambda a: (a == '--') and a or "%s" % a, args) + args = opt_args + ext_args call = ['git-'+dashify(method)] call.extend(args) |