[SOLVED] Re: Publishing on a simple HTTP server

Previous thread: committing empty diffs by Don Zickus on Monday, February 12, 2007 - 12:49 pm. (5 messages)

Next thread: [PATCH 0/2] A couple of small StGit improvements by Yann Dirson on Monday, February 12, 2007 - 2:08 pm. (3 messages)
From: Xavier Maillard
Date: Monday, February 12, 2007 - 1:10 pm

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
-

From: Johannes Schindelin
Date: Monday, February 12, 2007 - 4:11 pm

Hi,


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

-

From: Xavier Maillard
Date: Monday, February 12, 2007 - 10:32 pm

Hi,


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
-

From: Johannes Schindelin
Date: Tuesday, February 13, 2007 - 3:07 am

Hi,


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

-

From: Xavier Maillard
Date: Tuesday, February 13, 2007 - 4:45 am

I thought this:

git --bare --git-dir=/tmp/my-cloned.git update-server-info


No problem. I won't forget.

Xavier

-

From: Johannes Schindelin
Date: Tuesday, February 13, 2007 - 4:57 am

Hi,


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

-

From: Xavier Maillard
Date: Wednesday, February 14, 2007 - 3:59 am

Hi Johannes,


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
-

From: Jeff King
Date: Wednesday, February 14, 2007 - 4:23 am

It works fine when I try it (after correcting the typo). What's not
working?

-Peff
-

From: Xavier Maillard
Date: Wednesday, February 14, 2007 - 4:34 am

It just fails with the error message given earlier.

Update: I tried again and it works. I may have missed something.

Sorry.

Xavier
-

Previous thread: committing empty diffs by Don Zickus on Monday, February 12, 2007 - 12:49 pm. (5 messages)

Next thread: [PATCH 0/2] A couple of small StGit improvements by Yann Dirson on Monday, February 12, 2007 - 2:08 pm. (3 messages)