Procházet zdrojové kódy

Merge pull request #2004 from AmeliaBR/fix-2003-windows-quotes

Use double quotes in git shell command on Windows
pull/2008/head
Fred Hebert před 6 roky
odevzdal GitHub
rodič
revize
036e30ba2b
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      src/rebar_git_resource.erl

+ 2
- 2
src/rebar_git_resource.erl Zobrazit soubor

@ -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",

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