Explorar el Código

support atom for branch names like rebar2

pull/633/head
Tristan Sloughter hace 10 años
padre
commit
6fad6efe68
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      src/rebar_utils.erl

+ 2
- 0
src/rebar_utils.erl Ver fichero

@ -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}]).

Cargando…
Cancelar
Guardar