summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Paxton <starbelly@pobox.com>2018-12-08 18:32:49 -0600
committerBryan Paxton <starbelly@pobox.com>2018-12-09 16:36:48 -0600
commit7b728563f7931b90bfe5c3e5bab79f1fd64fbe21 (patch)
treea9eb00d7e8142ee57a4e56a5893ac3602d79b428
parent8e28561d4e14ea85d42d17ab5a0f17f5f1c696d2 (diff)
Use single vs escaped double quotes
-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 0ca6627..691f1ba 100644
--- a/src/rebar_git_resource.erl
+++ b/src/rebar_git_resource.erl
@@ -32,10 +32,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"),