From a2d678792d3154d5de04a5225079f2e0457b45b7 Mon Sep 17 00:00:00 2001 From: Alexis Horgix Chotard Date: Fri, 25 Aug 2017 11:51:22 +0200 Subject: util: move expand_path from repo/base and use it in Git class init --- git/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/cmd.py') diff --git a/git/cmd.py b/git/cmd.py index 3637ac9e..a2fcf50d 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -31,7 +31,7 @@ from git.compat import ( ) from git.exc import CommandError from git.odict import OrderedDict -from git.util import is_cygwin_git, cygpath +from git.util import is_cygwin_git, cygpath, expand_path from .exc import ( GitCommandError, @@ -405,7 +405,7 @@ class Git(LazyMixin): It is meant to be the working tree directory if available, or the .git directory in case of bare repositories.""" super(Git, self).__init__() - self._working_dir = working_dir + self._working_dir = expand_path(working_dir) self._git_options = () self._persistent_git_options = [] -- cgit v1.2.1