bitbake-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Peter Bergin <peter@berginkonsult.se>
Cc: bitbake-devel@lists.openembedded.org, "Bergin,
	Peter" <Peter.Bergin@windriver.com>
Subject: Re: [bitbake-devel] [PATCH] lib/bb/tests/fetch.py: set initial branch
Date: Thu, 11 May 2023 17:55:40 +0200	[thread overview]
Message-ID: <20230511155540e3a38c60@mail.local> (raw)
In-Reply-To: <20230509121717.1862519-1-peter@berginkonsult.se>

Hello,

This fails on the autobuilders:

https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/1397/steps/11/logs/stdio

error: unknown option `initial-branch=master'
usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>]


On 09/05/2023 14:17:17+0200, Peter Bergin wrote:
> From: "Bergin, Peter" <Peter.Bergin@windriver.com>
> 
> If you have a host where the git config for initial branch
> name is something else than 'master' the unittest will fail
> as they assume the default branch name is 'master'. Fix this
> by explicitly set the intial branch name at 'git init'.
> 
> Signed-off-by: Peter Bergin <peter.bergin@windriver.com>
> Signed-off-by: Peter Bergin <peter@berginkonsult.se>
> ---
>  lib/bb/tests/fetch.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
> index 532adb941..f71d0d10c 100644
> --- a/lib/bb/tests/fetch.py
> +++ b/lib/bb/tests/fetch.py
> @@ -423,7 +423,7 @@ class FetcherTest(unittest.TestCase):
>          return bb.process.run(cmd, cwd=cwd)[0]
>  
>      def git_init(self, cwd=None):
> -        self.git('init', cwd=cwd)
> +        self.git(['init', '--initial-branch=master'], cwd=cwd)
>          if not self.git(['config', 'user.email'], cwd=cwd):
>              self.git(['config', 'user.email', 'you@example.com'], cwd=cwd)
>          if not self.git(['config', 'user.name'], cwd=cwd):
> -- 
> 2.34.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#14769): https://lists.openembedded.org/g/bitbake-devel/message/14769
> Mute This Topic: https://lists.openembedded.org/mt/98782276/3617179
> Group Owner: bitbake-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2023-05-11 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-09 12:17 [PATCH] lib/bb/tests/fetch.py: set initial branch peter
2023-05-11 15:55 ` Alexandre Belloni [this message]
2023-05-11 20:27   ` [bitbake-devel] " Peter Bergin
2023-05-11 20:45     ` Alexandre Belloni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230511155540e3a38c60@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=Peter.Bergin@windriver.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=peter@berginkonsult.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).