-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2168 from gtalarico/windows-cmder-root-space-esca…
…pe-fix Escpace spaces on cmder shell path - Fixes #2115
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tasks/vendoring/patches/patched/pew-cmder-root-space-escape-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/pipenv/patched/pew/pew.py b/pipenv/patched/pew/pew.py | ||
index 2d3889a0..91f313c1 100644 | ||
--- a/pipenv/patched/pew/pew.py | ||
+++ b/pipenv/patched/pew/pew.py | ||
@@ -184,7 +184,8 @@ def fork_bash(env, cwd): | ||
|
||
def fork_cmder(env, cwd): | ||
shell_cmd = ['cmd'] | ||
- cmderrc_path = r'%CMDER_ROOT%\vendor\init.bat' | ||
+ escaped_cmder_root = os.environ['CMDER_ROOT'].replace(' ', '^ ') | ||
+ cmderrc_path = r'{0}\vendor\init.bat'.format(escaped_cmder_root) | ||
if expandpath(cmderrc_path).exists(): | ||
shell_cmd += ['/k', cmderrc_path] | ||
if cwd: |