git fetch.type

Ryan Schmidt ryandesign at macports.org
Wed Aug 8 18:50:57 PDT 2012


On Aug 8, 2012, at 20:43, Ryan Schmidt <ryandesign at macports.org> wrote:

> 
> On Aug 8, 2012, at 19:02, Craig Miller <craig.miller at spatialminds.com> wrote:
> 
>> I'm very new to MacPorts Portfile development.  I'm trying to setup a git fetch.type but am receiving errors during the fetch phase.  I've read through the docs, but seem to be doing something incorrectly.  Can anyone point me to a Portfile that uses git as a fetch.type for reference?
>> 
>> A git clone using the url specified in git.url works on the command line.  I'm not sure what I'm missing.
>> 
>> In case someone is willing to take a closer look my Portfile is attached.
> 
> I'm not sure why it doesn't work for this particular git repository.

The error is:

fatal: dumb http transport does not support --depth

I had to read MacPorts base to find out why it was adding the --depth argument: it does this when you don't specify a branch.

You should always specify a branch when fetching from git, otherwise the build is not repeatable.




More information about the macports-dev mailing list