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

Re: Cloning bare repository always warns that its empty.

From
Jeff King <peff@peff.net>
Date
Jan 29, 2012, 03:24 UTC
Message-ID
<20120129032458.GB1347@sigill.intra.peff.net>
In-Reply-To
<1327806561158-7233455.post@n2.nabble.com>
On Sat, Jan 28, 2012 at 07:09:21PM -0800, nmartin wrote:
Show 5 quoted lines
> I created a bare repository (empty) on my server which I making public over
> http. I cloned this repository on another machine(A), committed changes, and
> pushed the changes to the server. On the server when I run $ git log I can
> see the commit that I pushed. However if I clone this repository on a 3rd
> machine(B).. the repository is empty.

Is your http server git-aware (i.e., running the smart-git http-backend CGI), or it is simply serving the repository files? If the latter, then you need to arrange to run the "git update-server-info" when you push into it, which will update the information that "dumb" http clients will look at.

If the server is running git v1.6.6 or later, you can turn this on in the server repository by running:

  git config receive.updateserverinfo true
-Peff
Previous: nmartin
Message 2 of 2 in “Cloning bare repository always warns that its empty.”
  1. nmartinJan 29, 2012
  2. Jeff KingJan 29, 2012

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.