"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Sylvain Saboua <sylvain@saboua.me>
Subject:
`populating an empty repository with got send'
To:
Gameoftrees <gameoftrees@openbsd.org>
Date:
Sat, 15 Aug 2026 01:31:58 +0200

Download raw body.

Thread
  • Sylvain Saboua:

    `populating an empty repository with got send'

I am setting up a server, hosting an instance of gotd(8).

I managed to get my repos listed and accessible.
However, I haven't managed to populate a repo from the
client side, as per the manual page (EXAMPLES section).

Here is what I am doing, first on the server side,
them from the client side.

srv# mkdir /mnt/git/bkup
srv# chown _gotd:_gotd /mnt/git/bkup/
srv# su -m _gotd -c 'gotadmin init /mnt/git/bkup'
srv# cat >> /etc/gotd.conf <<EOF
      repository 'bkup' {
      path '/mnt/git/bkup'
      permit rw sylvain
      permit ro anonymous
      }
      EOF
# rcctl restart gotd


  $ mkdir bkup && echo '#!/bin/sh' > bkup/bkup.sh
  $ got clone sylvain@srv:bkup
Connecting to ssh://sylvain@srv/bkup
got-fetch-pack: could not find any branches to fetch
got: could not find any branches to fetch
  $ got import -r bkup.git bkup/
A  /Users/sylvansab/hax/got/bkup/bkup.sh
Created branch refs/heads/main with commit 
4340e205138bbb32611a289aafa09243e496d3e9
  $ got checkout -E bkup.git bkup
E  /Users/sylvansab/hax/got/bkup/bkup.sh
Checked out refs/heads/main: 4340e205138bbb32611a289aafa09243e496d3e9
Now shut up and hack
  $ cd bkup
  $ got send -b main
got: origin: remote repository not found
  $ got send -b main sylvain@srv:bkup
got: sylvain@srv:bkup: remote repository not found

Am I doing a mistake with the send command ?

-- 
Sylvain Saboua
looking for a PDP-11