git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Creating new repos

From
Horst H. von Brand <vonbrand@inf.utfsm.cl>
Date
Oct 27, 2006, 12:29 UTC
Message-ID
<200610271229.k9RCTARu016773@laptop13.inf.utfsm.cl>

I'm trying to set up git repos for remote access here. I set up git-daemon and got it working (some older repositories do work fine), but now:

  $ mkdir /var/scm/user/SomeRepo.git
  $ cd /var/scm/user/SomeRepo.git
  $ git --bare init-db
  $ touch git-daemon-export-ok
All OK, but then, from a remote machine:
  $ git clone git://git-server/user/SomeRepo.git
  fatal: no matching remote head
  fetch-pack from 'git://git-server/user/Test.git' failed.

The empty repo created by init-db should be cloneable, so as to get the ball rolling easily.

You can't push into such an empty repository either.

Any suggestion of how to set up a server into which users can create their own repos /without/ giving out full shell accounts?

Also, the behaviour of git-daemon is different when using git or ssh+git, you need to give the full path for the later but not the former (given --base-path=/var/scm):

  git://git-server/user/Test.git
  ssh+git://git-server/var/scm/user/Test.git
Is this intentional?
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513
Next: Petr Baudis
Message 1 of 2 in “Creating new repos”
  1. Horst H. von BrandOct 27, 2006
  2. Petr BaudisOct 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.