diff options
Diffstat (limited to 'git_command.py')
-rw-r--r-- | git_command.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git_command.py b/git_command.py index 8bd4e67e..d06fc77c 100644 --- a/git_command.py +++ b/git_command.py | |||
@@ -285,6 +285,9 @@ class GitCommand(object): | |||
285 | command = [GIT] | 285 | command = [GIT] |
286 | if bare: | 286 | if bare: |
287 | if gitdir: | 287 | if gitdir: |
288 | # Git on Windows wants its paths only using / for reliability. | ||
289 | if platform_utils.isWindows(): | ||
290 | gitdir = gitdir.replace('\\', '/') | ||
288 | env[GIT_DIR] = gitdir | 291 | env[GIT_DIR] = gitdir |
289 | cwd = None | 292 | cwd = None |
290 | command.append(cmdv[0]) | 293 | command.append(cmdv[0]) |