* Cloning bare repository always warns that its empty.
@ 2012-01-29 3:09 nmartin
2012-01-29 3:24 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: nmartin @ 2012-01-29 3:09 UTC (permalink / raw)
To: git
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cloning bare repository always warns that its empty.
2012-01-29 3:09 Cloning bare repository always warns that its empty nmartin
@ 2012-01-29 3:24 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2012-01-29 3:24 UTC (permalink / raw)
To: nmartin; +Cc: git
On Sat, Jan 28, 2012 at 07:09:21PM -0800, nmartin wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-29 3:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-29 3:09 Cloning bare repository always warns that its empty nmartin
2012-01-29 3:24 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).