Quellcode durchsuchen

Merge branch '1944-git-shell-eval-bug' of https://github.com/starbelly/rebar3 into starbelly-1944-git-shell-eval-bug

pull/2001/head
Fred Hebert vor 6 Jahren
Ursprung
Commit
1542fbfc82
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. +3
    -2
      src/rebar_git_resource.erl

+ 3
- 2
src/rebar_git_resource.erl Datei anzeigen

@ -36,10 +36,11 @@ lock_(AppDir, {git, Url}) ->
{ok, VsnString} = {ok, VsnString} =
case os:type() of case os:type() of
{win32, _} -> {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}]); [{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}]) [{use_stdout, false}, {debug_abort_on_error, AbortMsg}])
end, end,
Ref = rebar_string:trim(VsnString, both, "\n"), Ref = rebar_string:trim(VsnString, both, "\n"),

Laden…
Abbrechen
Speichern