9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
To: Philip Silva <philip.silva@protonmail.com>
Cc: 9front@9front.org
Subject: Re: [9front] Git multiple remotes
Date: Mon, 03 Jan 2022 20:47:17 +0100	[thread overview]
Message-ID: <87ilv0a9fe.fsf@turtle-trading.net> (raw)
In-Reply-To: <bXko1knyRf9wlAXtYF0JQ82KfvvmKxdsmVGb0clF0ZYTLOMLJ4p29qli6y8xhogHiuldDB7cuz6BGIngDXllTE6u3yNL-EjN8z2fPL46cEU=@protonmail.com> (Philip Silva's message of "Mon, 03 Jan 2022 16:59:39 +0000")

Hi Philip.

Thanks for confirming what I thought.  So this is what I did (slightly
edited):

    term% cat /.git/config
    [core]
            repositoryformatversion = p9.0
    [remote "origin"]
            url=gits://git.9front.org/plan9front/plan9front
    [remote "host"]
            url=ssh://benny@host/home/benny/Projects/plan9front

This URL works from the host with "host" replaced with the actual IP
address.  The SSH access from my 9front VM also works with "ssh
benny@host hostname".

    term% git/pull -u host
    git/query: resolve: invalid ref remotes/host/front
    git/query: resolve: invalid ref remotes/host/front
    git/query: resolve: invalid ref remotes/host/front
    ours: facb0e757ac63f763bd942a2714f979538b99eb0
    git/query: resolve: invalid ref remotes/host/front
    theirs:
    git/query: resolve: invalid ref remotes/host/front
    common:
    git/merge remotes/host/front
    
    term% git/branch -a
    heads/front
    remotes/THEM/front
    remotes/origin/front

I expected remotes/host/front in that list.  git/pull also seems to
expect that, s.a.

    term% git/query origin/front front host/front
    git/query: resolve: invalid ref host/front

    term% git/query origin/front front
    acc504c319a4b4188479cfa602e40cb6851c0528
    facb0e757ac63f763bd942a2714f979538b99eb0

Note that host/front is actually at f63d1d3ce at this time.

I try an explict fetch:

    term% cd /
    term% git/fetch -u host ssh://benny@host/home/benny/Projects/plan9front
    uri: "ssh://benny@host/home/benny/Projects/plan9front"
    symref HEAD refs/heads/front

But this does not change anything.

Anything else I could try or add?

TIA, benny


  reply	other threads:[~2022-01-03 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-03 15:20 Benjamin Riefenstahl
2022-01-03 16:59 ` Philip Silva
2022-01-03 19:47   ` Benjamin Riefenstahl [this message]
2022-01-04  0:20     ` Philip Silva
2022-01-04 12:44       ` Benjamin Riefenstahl
2022-01-04 16:37     ` ori
2022-01-04 19:14       ` Benjamin Riefenstahl

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=87ilv0a9fe.fsf@turtle-trading.net \
    --to=b.riefenstahl@turtle-trading.net \
    --cc=9front@9front.org \
    --cc=philip.silva@protonmail.com \
    /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).