summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-09-28 15:17:25 +0200
committerGitHub <noreply@github.com>2017-09-28 15:17:25 +0200
commit58998fb2dd6a1cad5faffdc36ae536ee6b04e3d2 (patch)
tree4f5c342b1c20b23a5bc73eb74855c4bb81f2c197 /git/cmd.py
parent251128d41cdf39a49468ed5d997cc1640339ccbc (diff)
parent2af601d5800a39ab04e9fe6cf22ef7b917ab5d67 (diff)
downloadgitpython-58998fb2dd6a1cad5faffdc36ae536ee6b04e3d2.tar.gz
Merge branch 'master' into master
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 6022180a..67143e0e 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 = []