Pārlūkot izejas kodu

Use single vs escaped double quotes

pull/1972/head
Bryan Paxton pirms 6 gadiem
vecāks
revīzija
7b728563f7
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. +3
    -2
      src/rebar_git_resource.erl

+ 3
- 2
src/rebar_git_resource.erl Parādīt failu

@ -32,10 +32,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"),

Notiek ielāde…
Atcelt
Saglabāt