From 71cd409660bc5b8c211dc7c51afae481d822d593 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Wed, 21 May 2008 19:39:55 +0200 Subject: fixed errors in the test, two permission errors remaining, thx to mock?!?! Also removed the shell_escape tests... --- lib/git_python/git.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/git_python') 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) -- cgit v1.2.1