Преглед изворни кода

Use double quotes in git shell command on Windows

Partially reverts commit f52a115ea9

Fixes #2003

Needs tests to prevent a future regression.
pull/2004/head
Amelia Bellamy-Royds пре 6 година
родитељ
комит
39357f1f16
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      src/rebar_git_resource.erl

+ 2
- 2
src/rebar_git_resource.erl Прегледај датотеку

@ -36,8 +36,8 @@ lock_(AppDir, {git, Url}) ->
{ok, VsnString} =
case os:type() of
{win32, _} ->
rebar_utils:sh("git --git-dir=';" ++ Dir ++ "/.git' "
"--work-tree=';" ++ Dir ++ "' rev-parse --verify HEAD",
rebar_utils:sh("git --git-dir=\";" ++ Dir ++ "/.git\" "
"--work-tree=\";" ++ Dir ++ "\" rev-parse --verify HEAD",
[{use_stdout, false}, {debug_abort_on_error, AbortMsg}]);
_ ->
rebar_utils:sh("git --git-dir='" ++ Dir ++ "/.git' rev-parse --verify HEAD",

Loading…
Откажи
Сачувај