github ports

Eduardo Morrás emorrasg at yahoo.es
Mon Jan 11 10:00:47 UTC 2021


On Mon, 11 Jan 2021 09:21:16 +0000
Steve O'Hara-Smith <steve at sohara.org> wrote:

> On Mon, 11 Jan 2021 09:57:37 +0100
> Erwan David <erwan at rail.eu.org> wrote:
> 
> > What is the solution for those who are not interessed/cannot handle
> > the whole history with all branches ?
> 
> 	Add these to the git clone command.
> 
> 	--depth 1 --single-branch

So, can I change 

#portsnap fetch update 

with 

with this sh script?

#!/bin/sh
git clone --depth 1 --single branch git://github.com/freebsd/freebsd-ports ports

Or will be it more complicated and prone to error?

What happens with the /usr/ports/distfile content? Is it erased everytime I clone the ports repository?

For now, portsnap never fired my feet but git...

> -- 
> Steve O'Hara-Smith <steve at sohara.org>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"


---   ---
Eduardo Morrás <emorrasg at yahoo.es>


More information about the freebsd-questions mailing list