Use literal quoting for env vars sent over ssh by clone

This commit is contained in:
Kovid Goyal
2022-04-15 14:34:21 +05:30
parent 25f022cc14
commit 775584b5a5
3 changed files with 23 additions and 12 deletions

View File

@@ -93,8 +93,9 @@ def apply_env_vars(raw):
if len(parts) == 1:
key, val = parts[0], ''
else:
key, val = parts
val = os.path.expandvars(val)
key, val, literal_quote = parts
if not literal_quote:
val = os.path.expandvars(val)
os.environ[key] = val
for line in raw.splitlines():