summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2019-01-23 14:43:20 -0500
committerFred Hebert <mononcqc@ferd.ca>2019-01-23 14:43:20 -0500
commit84cb7c3baa213d1a7e9af92379c59e38c1e282e6 (patch)
treea21a1548ae5bbf2e260e44e927044624eadcd2cd
parent4a5c28d6cd1654c72a1b577046fe9d97d3a1b360 (diff)
parentf52a115ea9d66c812f68200383d769ac300a2828 (diff)
Merge branch 'starbelly-1944-git-shell-eval-bug'
-rw-r--r--src/rebar_git_resource.erl5
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"),