* Publishing on a simple HTTP server
@ 2007-02-12 20:10 Xavier Maillard
2007-02-12 23:11 ` Johannes Schindelin
0 siblings, 1 reply; 9+ messages in thread
From: Xavier Maillard @ 2007-02-12 20:10 UTC (permalink / raw)
To: git
Hi,
I am trying to understand how to publish/export my repository to
put it onto a HTTP server from which, I hope, someone could clone
or pull from it.
Sadly, I think I do not have the right recipe to achieve this.
I hope you will be able to comment how I do things and tell
what's wrong:
1. Repack current repository (just in case)
git repack -d
2. Clone current repository
git clone --bare -l . /tmp/my-cloned.git
3. Update cloned repository informations
git --bare --git-dir=/tmp/my-cloned.git update-server-info
Then I upload this to my HTTP server.
When I want to clone the result from my HTTP server, here is what
I get:
Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?
Note that I do not have git installed onto my HTTP server (since
I can't do that) neither is gitweb.
What is wrong this ?
Regards,
Xavier
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Publishing on a simple HTTP server
2007-02-12 20:10 Publishing on a simple HTTP server Xavier Maillard
@ 2007-02-12 23:11 ` Johannes Schindelin
2007-02-13 5:32 ` Xavier Maillard
0 siblings, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2007-02-12 23:11 UTC (permalink / raw)
To: Xavier Maillard; +Cc: git
Hi,
On Mon, 12 Feb 2007, Xavier Maillard wrote:
> Cannot get remote repository information.
> Perhaps git-update-server-info needs to be run there?
How did you upload?
Basically, the best way really is to follow
Documentation/howto/setup-git-server-over-http.txt. Having said that, you
can run git-update-server-info locally, and copy .git/info/refs to the
webserver.
HOWEVER, most likely you have to adjust the permissions on the webserver
afterwards. As I said, the easiest way is to follow the docs (which boils
down to do even the initial push using git).
Hth,
Dscho
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Publishing on a simple HTTP server
2007-02-12 23:11 ` Johannes Schindelin
@ 2007-02-13 5:32 ` Xavier Maillard
2007-02-13 10:07 ` Johannes Schindelin
0 siblings, 1 reply; 9+ messages in thread
From: Xavier Maillard @ 2007-02-13 5:32 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
Hi,
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> On Mon, 12 Feb 2007, Xavier Maillard wrote:
>
> > Cannot get remote repository information.
> > Perhaps git-update-server-info needs to be run there?
>
> How did you upload?
I wrote a small LFTP mirror script.
I will check your tutorial but I am pretty sure I won't be able
to run all the commands (I, for example, can't do more than
connecting onto a FTP server at my FAI).
Xavier
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Publishing on a simple HTTP server
2007-02-13 5:32 ` Xavier Maillard
@ 2007-02-13 10:07 ` Johannes Schindelin
2007-02-13 11:45 ` Xavier Maillard
0 siblings, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2007-02-13 10:07 UTC (permalink / raw)
To: Xavier Maillard; +Cc: git
Hi,
On Tue, 13 Feb 2007, Xavier Maillard wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>
> > On Mon, 12 Feb 2007, Xavier Maillard wrote:
> >
> > > Cannot get remote repository information.
> > > Perhaps git-update-server-info needs to be run there?
> >
> > How did you upload?
>
> I wrote a small LFTP mirror script.
>
> I will check your tutorial but I am pretty sure I won't be able to run
> all the commands (I, for example, can't do more than connecting onto a
> FTP server at my FAI).
In that case, please extend your mirror script to run
git-update-server-info before mirroring.
And if it works, a small description (maybe as a patch for
Documentation/howto/?) would be nice.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Publishing on a simple HTTP server
2007-02-13 10:07 ` Johannes Schindelin
@ 2007-02-13 11:45 ` Xavier Maillard
2007-02-13 11:57 ` Johannes Schindelin
0 siblings, 1 reply; 9+ messages in thread
From: Xavier Maillard @ 2007-02-13 11:45 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> In that case, please extend your mirror script to run
> git-update-server-info before mirroring.
I thought this:
git --bare --git-dir=/tmp/my-cloned.git update-server-info
was supposed to achieve this. Doesn't it ?
> And if it works, a small description (maybe as a patch for
> Documentation/howto/?) would be nice.
No problem. I won't forget.
Xavier
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Publishing on a simple HTTP server
2007-02-13 11:45 ` Xavier Maillard
@ 2007-02-13 11:57 ` Johannes Schindelin
2007-02-14 10:59 ` Xavier Maillard
0 siblings, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2007-02-13 11:57 UTC (permalink / raw)
To: Xavier Maillard; +Cc: git
Hi,
On Tue, 13 Feb 2007, Xavier Maillard wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>
> > In that case, please extend your mirror script to run
> > git-update-server-info before mirroring.
>
> I thought this:
>
> git --bare --git-dir=/tmp/my-cloned.git update-server-info
>
> was supposed to achieve this. Doesn't it ?
If you mirror /tmp/my-cloned.git to the HTTP server, then yes, this should
do it. Make sure that /tmp/my-cloned.git/info/refs is really updated and
mirrored out, though.
Hth,
Dscho
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Publishing on a simple HTTP server
2007-02-13 11:57 ` Johannes Schindelin
@ 2007-02-14 10:59 ` Xavier Maillard
2007-02-14 11:23 ` Jeff King
0 siblings, 1 reply; 9+ messages in thread
From: Xavier Maillard @ 2007-02-14 10:59 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Xavier Maillard, git
Hi Johannes,
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > I thought this:
> >
> > git --bare --git-dir=/tmp/my-cloned.git update-server-info
> >
> > was supposed to achieve this. Doesn't it ?
>
> If you mirror /tmp/my-cloned.git to the HTTP server, then yes, this should
> do it. Make sure that /tmp/my-cloned.git/info/refs is really updated and
> mirrored out, though.
I double checked and yes, info/refs is really updated and yes, it
is mirrored but it still fails when I try to clone my repository
with this:
git clone http://zedek01.free.fr/projetcs/your-proj2.git
(you can try by yourself).
What can I do ?
Regards,
Xavier
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Publishing on a simple HTTP server
2007-02-14 10:59 ` Xavier Maillard
@ 2007-02-14 11:23 ` Jeff King
2007-02-14 11:34 ` [SOLVED] " Xavier Maillard
0 siblings, 1 reply; 9+ messages in thread
From: Jeff King @ 2007-02-14 11:23 UTC (permalink / raw)
To: Xavier Maillard; +Cc: git
On Wed, Feb 14, 2007 at 11:59:25AM +0100, Xavier Maillard wrote:
> I double checked and yes, info/refs is really updated and yes, it
> is mirrored but it still fails when I try to clone my repository
> with this:
>
> git clone http://zedek01.free.fr/projetcs/your-proj2.git
>
> (you can try by yourself).
It works fine when I try it (after correcting the typo). What's not
working?
-Peff
^ permalink raw reply [flat|nested] 9+ messages in thread
* [SOLVED] Re: Publishing on a simple HTTP server
2007-02-14 11:23 ` Jeff King
@ 2007-02-14 11:34 ` Xavier Maillard
0 siblings, 0 replies; 9+ messages in thread
From: Xavier Maillard @ 2007-02-14 11:34 UTC (permalink / raw)
To: Jeff King; +Cc: Xavier Maillard, git
Jeff King <peff@peff.net> wrote:
> It works fine when I try it (after correcting the typo). What's not
> working?
It just fails with the error message given earlier.
Update: I tried again and it works. I may have missed something.
Sorry.
Xavier
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-02-14 11:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 20:10 Publishing on a simple HTTP server Xavier Maillard
2007-02-12 23:11 ` Johannes Schindelin
2007-02-13 5:32 ` Xavier Maillard
2007-02-13 10:07 ` Johannes Schindelin
2007-02-13 11:45 ` Xavier Maillard
2007-02-13 11:57 ` Johannes Schindelin
2007-02-14 10:59 ` Xavier Maillard
2007-02-14 11:23 ` Jeff King
2007-02-14 11:34 ` [SOLVED] " Xavier Maillard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.