From 6fad6efe686ffdddaccc73613e0726a755d3bc99 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 21 Jul 2015 19:51:36 -0500 Subject: support atom for branch names like rebar2 --- src/rebar_utils.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 6eb4f4b..c8b9e10 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -689,6 +689,8 @@ set_httpc_options(Scheme, Proxy) -> httpc:set_options([{Scheme, {{Host, Port}, []}}], rebar). %% escape\ as\ a\ shell\? +escape_chars(Str) when is_atom(Str) -> + escape_chars(atom_to_list(Str)); escape_chars(Str) -> re:replace(Str, "([ ()?`!$])", "\\\\&", [global, {return, list}]). -- cgit v1.1