All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
To: Quentin Schulz <quentin.schulz@cherry.de>
Cc: yocto-patches@lists.yoctoproject.org
Subject: Re: [yocto-patches] [yocto-autobuilder-helper][PATCH] prepare-shared-repos: Allow to tag poky git
Date: Fri, 15 Nov 2024 15:27:07 +0100	[thread overview]
Message-ID: <ZzdaO5pl5BIVCwN_@bootlin-mathieu> (raw)
In-Reply-To: <a6d0d2b5-9d8a-47ae-89ed-f332765c37ae@cherry.de>

On Fri, Nov 15, 2024 at 03:21:15PM +0100, Quentin Schulz wrote:
> Hi Mathieu,
> 
> Apparently git-push supports pushing without a remote, c.f. the manpage:
> 
>        git push [--all | --branches | --mirror | --tags] [--follow-tags]
> [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
>                   [--repo=<repository>] [-f | --force] [-d | --delete]
> [--prune] [-q | --quiet] [-v | --verbose]
>                   [-u | --set-upstream] [-o <string> |
> --push-option=<string>]
>                   [--[no-]signed|--signed=(true|false|if-asked)]
>                   [--force-with-lease[=<refname>[:<expect>]]
> [--force-if-includes]]
>                   [--no-verify] [<repository> [<refspec>...]]
> 
> [...]
> 
>        <repository>
>            The "remote" repository that is the destination of a push
> operation. This parameter can be either a URL (see the section GIT URLS
> below) or the name of a remote (see the section REMOTES below).

Oh, that's nice! I was definitely not aware of this possibility. I will
send a new version.

> 
> This would avoid leftovers from stopped/interrupted/broken runs to mess with
> the git remote addition which could fail if the remote already exists.
> 

Um right, I did not think about builds potentially interrupted in the
mean time, thanks.

> Either don't use an explicit local remote, or remove it beforehand. Except
> that removing a non-existing remote will fail check_call, so you probably
> want to simply run the command and ignore the return code.
> 
> Cheers,
> Quentin

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


      reply	other threads:[~2024-11-15 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 14:02 [yocto-autobuilder-helper][PATCH] prepare-shared-repos: Allow to tag poky git mathieu.dubois-briand
2024-11-15 14:21 ` [yocto-patches] " Quentin Schulz
2024-11-15 14:27   ` Mathieu Dubois-Briand [this message]

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=ZzdaO5pl5BIVCwN_@bootlin-mathieu \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=quentin.schulz@cherry.de \
    --cc=yocto-patches@lists.yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.