[bitbake-devel] [PATCH] fetch2/git.py: try to handle local clone failures by pruning branches

Burton, Ross ross.burton at intel.com
Wed Aug 2 11:32:31 UTC 2017


On 2 August 2017 at 10:47, Mikko Rapeli <mikko.rapeli at bmw.de> wrote:

> +            except bb.fetch2.FetchError:
> +                # try to recover by pruning deleted remote branches which
> +                # make cloning local git tree fail in git 2.7.x but not in
> +                # git 1.9.x
> +                try:
> +                    runfetchcmd("%s -C %s remote prune origin" %
> (ud.basecmd, ud.clonedir), d)
> +                except bb.fetch2.FetchError:
> +                    pass
>

Would it be best to simplify the logic by aways pruning before fetching?
Prune doesn't take a long time, and it will keep the size of the mirror
down.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20170802/f204f282/attachment-0002.html>


More information about the bitbake-devel mailing list