summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2019-01-23 14:41:57 -0500
committerFred Hebert <mononcqc@ferd.ca>2019-01-23 14:41:57 -0500
commit1542fbfc8214e5cf888f62fcccce558660e32f83 (patch)
tree93da7ac7ab2c121e08575dfd88bc873a8cbb5f94 /src
parent4a5c28d6cd1654c72a1b577046fe9d97d3a1b360 (diff)
parent7b728563f7931b90bfe5c3e5bab79f1fd64fbe21 (diff)
Merge branch '1944-git-shell-eval-bug' of https://github.com/starbelly/rebar3 into starbelly-1944-git-shell-eval-bug
Diffstat (limited to 'src')
-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..7657699 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"),