{"thread":{"id":"29463","subject":"Cloning bare repository always warns that its empty.","startedAt":"2012-01-29T03:09:21Z","lastAt":"2012-01-29T03:24:59Z","messageCount":2,"participants":["nmartin","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"183240","messageId":"1327806561158-7233455.post@n2.nabble.com","threadId":"29463","inReplyTo":null,"subject":"Cloning bare repository always warns that its empty.","fromName":"nmartin","fromEmail":"nmartin867@gmail.com","sentAt":"2012-01-29T03:09:21Z","receivedAt":"2012-01-29T03:09:21Z","isPatch":false,"sender":{"key":"nmartin867@gmail.com","avatar":null},"body":"Hello..\n\nI created a bare repository (empty) on my server which I making public over\nhttp. I cloned this repository on another machine(A), committed changes, and\npushed the changes to the server. On the server when I run $ git log I can\nsee the commit that I pushed. However if I clone this repository on a 3rd\nmachine(B).. the repository is empty.\n\n\nCan someone to me what I am doing wrong? I would expect the pushed changes\nto have been brought down to machine B. \n\nThanks!\n\n--\nView this message in context: http://git.661346.n2.nabble.com/Cloning-bare-repository-always-warns-that-its-empty-tp7233455p7233455.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"183243","messageId":"20120129032458.GB1347@sigill.intra.peff.net","threadId":"29463","inReplyTo":"1327806561158-7233455.post@n2.nabble.com","subject":"Re: Cloning bare repository always warns that its empty.","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-01-29T03:24:59Z","receivedAt":"2012-01-29T03:24:59Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sat, Jan 28, 2012 at 07:09:21PM -0800, nmartin wrote:\n\n> I created a bare repository (empty) on my server which I making public over\n> http. I cloned this repository on another machine(A), committed changes, and\n> pushed the changes to the server. On the server when I run $ git log I can\n> see the commit that I pushed. However if I clone this repository on a 3rd\n> machine(B).. the repository is empty.\n\nIs your http server git-aware (i.e., running the smart-git http-backend\nCGI), or it is simply serving the repository files? If the latter, then\nyou need to arrange to run the \"git update-server-info\" when you push\ninto it, which will update the information that \"dumb\" http clients will\nlook at.\n\nIf the server is running git v1.6.6 or later, you can turn this on in\nthe server repository by running:\n\n  git config receive.updateserverinfo true\n\n-Peff\n"}]}