{"thread":{"id":"6785","subject":"Publishing on a simple HTTP server","startedAt":"2007-02-12T20:10:25Z","lastAt":"2007-02-14T11:34:48Z","messageCount":9,"participants":["Xavier Maillard","Johannes Schindelin","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"34313","messageId":"14870.1171311025@localhost","threadId":"6785","inReplyTo":null,"subject":"Publishing on a simple HTTP server","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-12T20:10:25Z","receivedAt":"2007-02-12T20:10:25Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi,\n\nI am trying to understand how to publish/export my repository to\nput it onto a HTTP server from which, I hope, someone could clone\nor pull from it.\n\nSadly, I think I do not have the right recipe to achieve this.\n\nI hope you will be able to comment how I do things and tell\nwhat's wrong:\n\n1. Repack current repository (just in case)\n\ngit repack -d\n\n2. Clone current repository\n\ngit clone --bare -l . /tmp/my-cloned.git\n\n3. Update cloned repository informations\n\ngit --bare --git-dir=/tmp/my-cloned.git update-server-info\n\n\nThen I upload this to my HTTP server.\n\nWhen I want to clone the result from my HTTP server, here is what\nI get:\n\nCannot get remote repository information.\nPerhaps git-update-server-info needs to be run there?\n\n\nNote that I do not have git installed onto my HTTP server (since\nI can't do that) neither is gitweb.\n\nWhat is wrong this ?\n\nRegards,\n\nXavier\n"},{"id":"34333","messageId":"Pine.LNX.4.63.0702130009010.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6785","inReplyTo":"14870.1171311025@localhost","subject":"Re: Publishing on a simple HTTP server","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-12T23:11:22Z","receivedAt":"2007-02-12T23:11:22Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 12 Feb 2007, Xavier Maillard wrote:\n\n> Cannot get remote repository information.\n> Perhaps git-update-server-info needs to be run there?\n\nHow did you upload?\n\nBasically, the best way really is to follow \nDocumentation/howto/setup-git-server-over-http.txt. Having said that, you \ncan run git-update-server-info locally, and copy .git/info/refs to the \nwebserver.\n\nHOWEVER, most likely you have to adjust the permissions on the webserver \nafterwards. As I said, the easiest way is to follow the docs (which boils \ndown to do even the initial push using git).\n\nHth,\nDscho\n"},{"id":"34377","messageId":"19695.1171344721@localhost","threadId":"6785","inReplyTo":"Pine.LNX.4.63.0702130009010.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: Publishing on a simple HTTP server","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-13T05:32:01Z","receivedAt":"2007-02-13T05:32:01Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi,\n\nJohannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n\n> On Mon, 12 Feb 2007, Xavier Maillard wrote:\n> \n> > Cannot get remote repository information.\n> > Perhaps git-update-server-info needs to be run there?\n> \n> How did you upload?\n\nI wrote a small LFTP mirror script.\n\nI will check your tutorial but I am pretty sure I won't be able\nto run all the commands (I, for example, can't do more than\nconnecting onto a FTP server at my FAI).\n\nXavier\n"},{"id":"34390","messageId":"Pine.LNX.4.63.0702131106230.1300@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6785","inReplyTo":"19695.1171344721@localhost","subject":"Re: Publishing on a simple HTTP server","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-13T10:07:31Z","receivedAt":"2007-02-13T10:07:31Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 13 Feb 2007, Xavier Maillard wrote:\n\n> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> \n> > On Mon, 12 Feb 2007, Xavier Maillard wrote:\n> > \n> > > Cannot get remote repository information.\n> > > Perhaps git-update-server-info needs to be run there?\n> > \n> > How did you upload?\n> \n> I wrote a small LFTP mirror script.\n> \n> I will check your tutorial but I am pretty sure I won't be able to run \n> all the commands (I, for example, can't do more than connecting onto a \n> FTP server at my FAI).\n\nIn that case, please extend your mirror script to run \ngit-update-server-info before mirroring.\n\nAnd if it works, a small description (maybe as a patch for \nDocumentation/howto/?) would be nice.\n\nCiao,\nDscho\n"},{"id":"34397","messageId":"23628.1171367140@localhost","threadId":"6785","inReplyTo":"Pine.LNX.4.63.0702131106230.1300@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: Publishing on a simple HTTP server","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-13T11:45:40Z","receivedAt":"2007-02-13T11:45:40Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n\n> In that case, please extend your mirror script to run \n> git-update-server-info before mirroring.\n\nI thought this:\n\ngit --bare --git-dir=/tmp/my-cloned.git update-server-info\n\nwas supposed to achieve this. Doesn't it ?\n \n> And if it works, a small description (maybe as a patch for \n> Documentation/howto/?) would be nice.\n\nNo problem. I won't forget.\n\nXavier\n"},{"id":"34399","messageId":"Pine.LNX.4.63.0702131256430.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6785","inReplyTo":"23628.1171367140@localhost","subject":"Re: Publishing on a simple HTTP server","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-13T11:57:40Z","receivedAt":"2007-02-13T11:57:40Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 13 Feb 2007, Xavier Maillard wrote:\n\n> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> \n> > In that case, please extend your mirror script to run \n> > git-update-server-info before mirroring.\n> \n> I thought this:\n> \n> git --bare --git-dir=/tmp/my-cloned.git update-server-info\n> \n> was supposed to achieve this. Doesn't it ?\n\nIf you mirror /tmp/my-cloned.git to the HTTP server, then yes, this should \ndo it. Make sure that /tmp/my-cloned.git/info/refs is really updated and \nmirrored out, though.\n\nHth,\nDscho\n"},{"id":"34513","messageId":"4127.1171450765@localhost","threadId":"6785","inReplyTo":"Pine.LNX.4.63.0702131256430.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: Publishing on a simple HTTP server","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-14T10:59:25Z","receivedAt":"2007-02-14T10:59:25Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi Johannes,\n\nJohannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n\n> > I thought this:\n> > \n> > git --bare --git-dir=/tmp/my-cloned.git update-server-info\n> > \n> > was supposed to achieve this. Doesn't it ?\n> \n> If you mirror /tmp/my-cloned.git to the HTTP server, then yes, this should \n> do it. Make sure that /tmp/my-cloned.git/info/refs is really updated and \n> mirrored out, though.\n\nI double checked and yes, info/refs is really updated and yes, it\nis mirrored but it still fails when I try to clone my repository\nwith this:\n\n git clone http://zedek01.free.fr/projetcs/your-proj2.git\n\n(you can try by yourself).\n\nWhat can I do ?\n\nRegards,\n\nXavier\n"},{"id":"34517","messageId":"20070214112324.GA5472@coredump.intra.peff.net","threadId":"6785","inReplyTo":"4127.1171450765@localhost","subject":"Re: Publishing on a simple HTTP server","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-02-14T11:23:24Z","receivedAt":"2007-02-14T11:23:24Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Feb 14, 2007 at 11:59:25AM +0100, Xavier Maillard wrote:\n\n> I double checked and yes, info/refs is really updated and yes, it\n> is mirrored but it still fails when I try to clone my repository\n> with this:\n> \n>  git clone http://zedek01.free.fr/projetcs/your-proj2.git\n> \n> (you can try by yourself).\n\nIt works fine when I try it (after correcting the typo). What's not\nworking?\n\n-Peff\n"},{"id":"34519","messageId":"4827.1171452888@localhost","threadId":"6785","inReplyTo":"20070214112324.GA5472@coredump.intra.peff.net","subject":"[SOLVED] Re: Publishing on a simple HTTP server","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-14T11:34:48Z","receivedAt":"2007-02-14T11:34:48Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Jeff King <peff@peff.net> wrote:\n\n> It works fine when I try it (after correcting the typo). What's not\n> working?\n\nIt just fails with the error message given earlier.\n\nUpdate: I tried again and it works. I may have missed something.\n\nSorry.\n\nXavier\n"}]}