Skip to contentSkip to conversation

Cloning bare repository always warns that its empty.

DISCUSSION nmartin 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

nmartin

author
#0 lore raw

Hello..

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.

Can someone to me what I am doing wrong? I would expect the pushed changes to have been brought down to machine B.

Thanks!

--
View this message in context: http://git.661346.n2.nabble.com/Cloning-bare-repository-always-warns-that-its-empty-tp7233455p7233455.html
Sent from the git mailing list archive at Nabble.com.

#1 lore raw
Quoted 5 lines · nmartin

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