[bitbake-devel] [PATCH] Make git fetch run with -f so rebased branches don't fail

Richard Purdie richard.purdie at linuxfoundation.org
Mon Oct 3 10:47:53 UTC 2011


On Tue, 2011-09-27 at 16:41 -0500, Matthew McClintock wrote:
> git fetches can fail (or at least return failed) when trying to
> fetch and prune rebased branches. This patch simply adds a -f
> to the git fetch command so these failure are ignore
> 
> Generally, if some SHA was rebased away it's not coming back so
> there is no point in not doing this force
> 
> Signed-off-by: Matthew McClintock <msm at freescale.com>
> ---
> This seems to fix the issue when building against our internal trees
> which are constantly rebased wrt to git fetch throwing errors if a
> non fast-forward-able branch is found
> 
>  lib/bb/fetch2/git.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard





More information about the bitbake-devel mailing list