diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2019-01-24 17:08:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 17:08:24 -0500 |
commit | 036e30ba2bcb7643c5a1603ff03232769b65c7a4 (patch) | |
tree | 04daf3cbb0b401066cc76a6d01e172a6515f34b5 /src/rebar_git_resource.erl | |
parent | 9dc4a3dacb90ef470561b20973c7119cd5d09b8b (diff) | |
parent | 39357f1f16a573451cf4a1cfa691017b275bfcd1 (diff) |
Merge pull request #2004 from AmeliaBR/fix-2003-windows-quotes
Use double quotes in git shell command on Windows
Diffstat (limited to 'src/rebar_git_resource.erl')
-rw-r--r-- | src/rebar_git_resource.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index c5031df..ac1316b 100644 --- a/src/rebar_git_resource.erl +++ b/src/rebar_git_resource.erl @@ -36,8 +36,8 @@ 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", |