Ver a proveniência

support atom for branch names like rebar2

pull/633/head
Tristan Sloughter há 10 anos
ascendente
cometimento
6fad6efe68
1 ficheiros alterados com 2 adições e 0 eliminações
  1. +2
    -0
      src/rebar_utils.erl

+ 2
- 0
src/rebar_utils.erl Ver ficheiro

@ -689,6 +689,8 @@ set_httpc_options(Scheme, Proxy) ->
httpc:set_options([{Scheme, {{Host, Port}, []}}], rebar). httpc:set_options([{Scheme, {{Host, Port}, []}}], rebar).
%% escape\ as\ a\ shell\? %% escape\ as\ a\ shell\?
escape_chars(Str) when is_atom(Str) ->
escape_chars(atom_to_list(Str));
escape_chars(Str) -> escape_chars(Str) ->
re:replace(Str, "([ ()?`!$])", "\\\\&", [global, {return, list}]). re:replace(Str, "([ ()?`!$])", "\\\\&", [global, {return, list}]).

Carregando…
Cancelar
Guardar