diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2019-01-23 14:43:20 -0500 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2019-01-23 14:43:20 -0500 |
commit | 84cb7c3baa213d1a7e9af92379c59e38c1e282e6 (patch) | |
tree | a21a1548ae5bbf2e260e44e927044624eadcd2cd | |
parent | 4a5c28d6cd1654c72a1b577046fe9d97d3a1b360 (diff) | |
parent | f52a115ea9d66c812f68200383d769ac300a2828 (diff) |
Merge branch 'starbelly-1944-git-shell-eval-bug'
-rw-r--r-- | src/rebar_git_resource.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index b2db6ca..c5031df 100644 --- a/src/rebar_git_resource.erl +++ b/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"), |