summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-09-28 14:25:38 +0200
committerGitHub <noreply@github.com>2017-09-28 14:25:38 +0200
commit3eb497ba1bbcaeb05a413a226fd78e54a29a3ff5 (patch)
tree40d875ae3ce8a0a38832647a5af34f1e9564c417 /git/cmd.py
parent2dca537f505e93248739478f17f836ae79e00783 (diff)
parenta2d678792d3154d5de04a5225079f2e0457b45b7 (diff)
downloadgitpython-3eb497ba1bbcaeb05a413a226fd78e54a29a3ff5.tar.gz
Merge pull request #664 from Horgix/path_expansion
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.py4
1 files changed, 2 insertions, 2 deletions
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 = []