浏览代码

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 6 年前
父节点
当前提交
1542fbfc82
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      src/rebar_git_resource.erl

+ 3
- 2
src/rebar_git_resource.erl 查看文件

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

正在加载...
取消
保存