Portfiles with fetch.type git ... can one add arguments to git?

Craig Treleaven ctreleaven at macports.org
Sat Aug 16 05:53:26 PDT 2014


At 2:04 PM +0200 8/16/14, René J.V. Bertin wrote:
>I'm whipping up a portfile for 
>kdevplatform-devel and kdevelop-devel, aiming to 
>follow the git repo. KDevplatform has a rather 
>big repo, which is re-fetched each time I modify 
>the portfile. It'd be useful to do a `git clone 
>--depth=1` to avoid downloading the entire 
>commit history for what might be just a single 
>build ... is that possible?

I don't know about 'git clone --depth=1' but is 
it possible to fetch a commit hash?  GitHub 
packages a tarball containing the state of the 
repository as of a particular commit.  See 
mythtv-core.27 for an example.

Craig


More information about the macports-users mailing list