Sfoglia il codice sorgente

Merge pull request #633 from tsloughter/atom_branch

support atom for branch names like rebar2
pull/650/head
Fred Hebert 10 anni fa
parent
commit
be1b16aea5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      src/rebar_utils.erl

+ 2
- 0
src/rebar_utils.erl Vedi File

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

Caricamento…
Annulla
Salva