diff --git a/VERSION b/VERSION index 5a311b4fc..5721194ee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.2 RC1 +0.3.2 amir diff --git a/git/cmd.py b/git/cmd.py index b3274dd8f..23c09001d 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -330,7 +330,18 @@ def execute(self, command, cwd = os.getcwd() else: cwd=self._working_dir - + + import logging + log = logging.getLogger(u"cratejoy") + log.debug(u"Running command {} in {}".format(command, cwd)) + + env = os.environ.copy() + if env.get('GIT_DIR'): + del env['GIT_DIR'] + + #log.debug(env) + #log.debug(u"Args {}".format(subprocess_kwargs)) + # Start the process proc = Popen(command, cwd=cwd, @@ -338,6 +349,7 @@ def execute(self, command, stderr=PIPE, stdout=PIPE, close_fds=(os.name=='posix'),# unsupported on linux + env=env, **subprocess_kwargs ) if as_process: