Skip to content

Commit

Permalink
Use os.pathsep + abspath in GIT_CEILING_DIRECTORIES
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed May 1, 2018
1 parent 0ced1ec commit caa40bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asv/plugins/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def _run_git(self, args, cwd=True, **kwargs):
kwargs['cwd'] = cwd
env = dict(kwargs.pop('env', os.environ))
if cwd is not None:
env['GIT_CEILING_DIRECTORIES'] = ':'.join([
os.path.join(cwd, os.pardir),
env['GIT_CEILING_DIRECTORIES'] = os.pathsep.join([
os.path.join(os.path.abspath(cwd), os.pardir),
env.get('GIT_CEILING_DIRECTORIES', '')])
return util.check_output([self._git] + args, env=env, **kwargs)

Expand Down

0 comments on commit caa40bb

Please sign in to comment.