diff options
author | Alexis Horgix Chotard <alexis.horgix.chotard@gmail.com> | 2017-08-25 11:51:22 +0200 |
---|---|---|
committer | Alexis Horgix Chotard <alexis.horgix.chotard@gmail.com> | 2017-08-25 11:55:56 +0200 |
commit | a2d678792d3154d5de04a5225079f2e0457b45b7 (patch) | |
tree | ff8fa906f5a91876d71bfbfee6393064d0f42fa3 /git/cmd.py | |
parent | cf8dc259fcc9c1397ea67cec3a6a4cb5816e3e68 (diff) | |
download | gitpython-a2d678792d3154d5de04a5225079f2e0457b45b7.tar.gz |
util: move expand_path from repo/base and use it in Git class init
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 = [] |