瀏覽代碼

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

Use double quotes in git shell command on Windows
pull/2008/head
Fred Hebert 6 年之前
committed by GitHub
父節點
當前提交
036e30ba2b
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/rebar_git_resource.erl

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

@ -36,8 +36,8 @@ 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",

Loading…
取消
儲存