Procházet zdrojové kódy

Merge branch 'starbelly-1944-git-shell-eval-bug'

pull/2001/head
Fred Hebert před 6 roky
rodič
revize
84cb7c3baa
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. +3
    -2
      src/rebar_git_resource.erl

+ 3
- 2
src/rebar_git_resource.erl Zobrazit soubor

@ -36,10 +36,11 @@ 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",
rebar_utils:sh("git --git-dir=';" ++ Dir ++ "/.git' rev-parse --verify HEAD",
[{use_stdout, false}, {debug_abort_on_error, AbortMsg}])
end,
Ref = rebar_string:trim(VsnString, both, "\n"),

Načítá se…
Zrušit
Uložit