<div dir="ltr">On 12 November 2014 15:26, Daniel J. Luke <span dir="ltr">&lt;<a href="mailto:dluke@geeklair.net" target="_blank">dluke@geeklair.net</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">&gt; On Nov 12, 2014, at 5:45 AM, William Gallafent &lt;<a href="mailto:william@gallaf.net">william@gallaf.net</a>&gt; wrote:<br>
&gt; According to <a href="https://guide.macports.org/#reference.phases.fetch.git" target="_blank">https://guide.macports.org/#reference.phases.fetch.git</a> I am able to set the url and tag to fetch … but for a particular port I&#39;m playing with I also need to add the “--recursive” option in order to get the submodules in place. Alternatively, I would need to run “git submodule update --init --recursive” immediately after the fetch.<br>
&gt;<br>
&gt; Any thoughts or advice?<br>
<br>
</span>First, be sure you actually need to use git to fetch the source (it&#39;s /much/ better to pull a tarball than to pull source from git/mercurial/svn/cvs/whatever).<br></blockquote><div><br></div><div>Fair point! The only links given to source for this project are to git repositories, unfortunately - <a href="http://www.linphone.org/technical-corner/linphone/downloads">http://www.linphone.org/technical-corner/linphone/downloads</a> … if there&#39;s a location from which I may download source tarballs, then so much the better, but I haven&#39;t found one yet!<br></div><div> <br></div><div>There&#39;s a ticket open to update the linphone port already, incidentally, but I decided not to hold my breath (that ticket has been open for 16 months …), and to update the port myself.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I&#39;m not sure if there&#39;s a hook for you to pass in additional git args, but even if there isn&#39;t - it should be relatively trivial for youu to add a &#39;post-fetch&#39; phase to do whatever you want to have happen right after the fetch.</blockquote><div>[snip explanation]<br><br></div><div>That looks rather like just the ticket. Thanks for the pointers!<br><br></div><div>-- <br></div><div>Bill Gallafent.<br></div><div> </div></div></div></div>