<div dir="ltr">You can configure your .gitconfig to rewrite URLs for you:<div><br></div><div><font face="courier new, monospace"><span style="color:rgb(85,85,85);line-height:14.625px">[url "<a href="https://github.com/">https://github.com/</a>"]</span><br style="color:rgb(85,85,85);line-height:14.625px">
<span style="color:rgb(85,85,85);line-height:14.625px"> insteadOf = git://<a href="http://github.com/">github.com/</a></span></font><br></div><div><br></div><div>Or do it through the command line:</div><div><br></div>
<div>
<div><font face="courier new, monospace">git config --global url.<a href="https://github.com/.insteadOf">https://github.com/.insteadOf</a> git://<a href="http://github.com/">github.com/</a></font></div></div><div><br></div>
<div>For more info check the man pages for git-config:</div><div><br></div><div><a href="http://git-scm.com/docs/git-config">http://git-scm.com/docs/git-config</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra">
<br clear="all"><div><div><br></div><div><br></div><div><span style="font-size:13px"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b>José Valim</b></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div>
<span style="font-family:verdana,sans-serif;font-size:x-small"><a href="http://www.plataformatec.com.br/" style="color:rgb(42,93,176)" target="_blank">www.plataformatec.com.br</a></span></div><div><span style="font-family:verdana,sans-serif;font-size:x-small">Skype: jv.ptec</span></div>
<div><span style="font-family:verdana,sans-serif;font-size:x-small">Founder and Lead Developer</span></div></span></div></span></div></div>
<br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 9:56 PM, James Kingsbery <span dir="ltr"><<a href="mailto:06jameskingsbery@gmail.com" target="_blank">06jameskingsbery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">There's a project I'm looking at for work on github. Like most Erlang projects, it uses rebar to build. Most rebar projects specify their dependencies using the "git://<a href="http://github.com/.." target="_blank">github.com/..</a>." format (eg: "git://<a href="http://github.com/DeadZen/goldrush.git" target="_blank">github.com/DeadZen/goldrush.git</a>"). However, my company has a firewall that prevents hitting repositories using the git:// protocol (and ssh traffic in general). Downloading the same dependencies (directly with git or via rebar) "https://" works fine. However, changing the rebar.config files doesn't scale well for projects that have lots of transitive dependencies. Is there a way to tell rebar to use the https:// version instead of the "git://" version?<div>
<br></div><div>Thanks,<br>Jamie</div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>