Thread (4 messages) 4 messages, 2 authors, 2022-06-10

Re: Best way to update `HEAD` in mirrored repos

From: Rodrigo Silva Mendoza <hidden>
Date: 2022-06-09 14:46:19

Hi Johannes,

On Thu, Jun 9, 2022 at 1:02 AM Johannes Schindelin
[off-list ref] wrote:

The reason is that `set-head` expects options to come before arguments,
like so:

        git remote set-head -a origin

Ciao,
Johannes

Hmm, that doesn't seem to work for me either - I get the same type of
error as before.
Here's a minimal repro:
    $ git clone git@github.com:git/gitscm-old.git --mirror
    $ cd gitscm-old.git
    $ git remote set-head -a origin
      error: Not a valid ref: refs/remotes/origin/master

Git version: git version 2.32.1 (Apple Git-133)

Let me know if I'm missing anything.

Cheers,
Rodrigo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help