threads / discuss / 8983

git-update-server-info may be required,cannot clone and pull from a remote repository

Subject: git-update-server-info may be required,cannot clone and pull from a remote repository

## tl;dr

10 messages between Jul 11, 2007 and Jul 13, 2007.

replies: 9people: 4as markdown or json

pradeep singh· Jul 11, 2007, 14:08 UTC · lore
hi All,

Please bear with me as i am completely new to git. I tired setting up git repository on one of my Ubuntu 7.04 machines.

I followed the howto instruction for setting up a git repo over http using the HOWTO given in the /usr/share/doc/git-doc/howtos .

All went correct. Now i am facing some trouble here.

1. I already have a source tree controlled by git on the same
machine.I want to make this as the master for the new public
repository. I created a bare git repo in it as per the howto. Now i
want to commit my local git repo to this public repository.I failed to
do so sadly :-/.Can anyone point me to the correct place or link?
2. Even when i did a (from another machine)
 $git-clone http://100.121.232/work.git work
 It says,
 Cannot get remote repository information.
 Perhaps git-update-server-info needs to be run there?
 I ran git-update-server on the original machine, restarted even
apache2 but still same thing.

Can any one help me with this? I ll appreciate some good documents or howtos on setting up git repository painlessly.

BTW how am i supposed to use gitweb?
PS: I am not an expert sysadmin so i am completely unaware of apache2
tweaks and cgi pecularities.
Any help or pointers will be great.

Thank you --pradeep

-- 
Pradeep
Alex Riesen· Jul 11, 2007, 14:31 UTC · re: pradeep singh · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

On 7/11/07, pradeep singh <pradeep.rautela@gmail.com> wrote:
> I followed the howto instruction for setting up a git repo over http
> using the HOWTO  given in the /usr/share/doc/git-doc/howtos .
>

You may want to consider an upgrade to your git installation. But it is unrelated to your problems.

Show 5 quoted lines
> 1. I already have a source tree controlled by git on the same
> machine.I want to make this as the master for the new public
> repository. I created a bare git repo in it as per the howto. Now i
> want to commit my local git repo to this public repository.I failed to
> do so sadly :-/.Can anyone point me to the correct place or link?
Try Documentation/everyday.txt in git source distribution
> 2. Even when i did a (from another machine)
>  $git-clone http://100.121.232/work.git work
>  It says,
>  Cannot get remote repository information.

Well, you can try this link in your browser. Does it show something? Does http://100.121.232/work.git/objects/info/packs work?

>  Perhaps git-update-server-info needs to be run there?
Yes. But it wont help unless your web server is setup correctly.
> Can any one help me with this?
Any reason you cannot use ssh?
> I ll appreciate some good documents or howtos on setting up git
> repository painlessly.
Usually it is as simple as "git init" in directory where you want it.
pradeep singh· Jul 12, 2007, 05:27 UTC · re: Alex Riesen · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

On 7/11/07, Alex Riesen <raa.lkml@gmail.com> wrote:
> On 7/11/07, pradeep singh <pradeep.rautela@gmail.com> wrote:
[snip]
>

[...] ok, i got the repo up. Thanks for the suggestion Alex. Anyway i could not get gitweb running after running git-instaweb.

Any thoughts on how to setup a gitweb interface ?
Thanks
-- 
Pradeep
Jakub Narebski· Jul 12, 2007, 09:58 UTC · re: pradeep singh · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

[Cc: git@vger.kernel.org, Pradeep Singh <pradeep.rautela@gmail.com>,
 Eric Wong <normalperson@yhbt.net> (instaweb creator)]
pradeep singh wrote:
> Anyway i could not get gitweb running after running git-instaweb.
> 
> Any thoughts on how to setup a gitweb interface ?
What information does gitweb/INSTALL lack?
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
pradeep singh· Jul 12, 2007, 12:52 UTC · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

sorry forgot to CC gitlist in my last mail. On 7/12/07, pradeep singh <pradeep.rautela@gmail.com> wrote:

Show 32 quoted lines
> On 7/12/07, Jakub Narebski <jnareb@gmail.com> wrote:
> > [Cc: git@vger.kernel.org, Pradeep Singh <pradeep.rautela@gmail.com>,
> >  Eric Wong <normalperson@yhbt.net> (instaweb creator)]
> >
> > pradeep singh wrote:
> >
> > > Anyway i could not get gitweb running after running git-instaweb.
> > >
> > > Any thoughts on how to setup a gitweb interface ?
> >
> > What information does gitweb/INSTALL lack?
>
> May be i am running some old version on my Ubuntu Edgy machine perhaps?
> I cannot find such a file anywhere?
>
> Looks like it is available in newer versions.
> Does it works for git-1.4.4?
>
> thanks for help.
> >
> > --
> > Jakub Narebski
> > Warsaw, Poland
> > ShadeHawk on #git
> >
> >
> >
>
>
> --
> Pradeep
>
-- 
Pradeep
Johannes Schindelin· Jul 12, 2007, 13:13 UTC · re: pradeep singh · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

Hi,
On Thu, 12 Jul 2007, pradeep singh wrote:
Show 9 quoted lines
> On 7/12/07, pradeep singh <pradeep.rautela@gmail.com> wrote:
> > On 7/12/07, Jakub Narebski <jnareb@gmail.com> wrote:
> > > What information does gitweb/INSTALL lack?
> > 
> > May be i am running some old version on my Ubuntu Edgy machine 
> > perhaps? I cannot find such a file anywhere?
> > 
> > Looks like it is available in newer versions. Does it works for 
> > git-1.4.4?

IMHO it is not good to start with anything prior to 1.5.0, if you did not have any exposure to older Git. In terms of user friendliness, 1.4.4.4->1.5.0 is a leap by an astronomic unit.

Ciao, Dscho

pradeep singh· Jul 12, 2007, 13:32 UTC · re: Johannes Schindelin · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

On 7/12/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 17 quoted lines
> Hi,
>
> On Thu, 12 Jul 2007, pradeep singh wrote:
>
> > On 7/12/07, pradeep singh <pradeep.rautela@gmail.com> wrote:
> > > On 7/12/07, Jakub Narebski <jnareb@gmail.com> wrote:
> > > > What information does gitweb/INSTALL lack?
> > >
> > > May be i am running some old version on my Ubuntu Edgy machine
> > > perhaps? I cannot find such a file anywhere?
> > >
> > > Looks like it is available in newer versions. Does it works for
> > > git-1.4.4?
>
> IMHO it is not good to start with anything prior to 1.5.0, if you did not
> have any exposure to older Git.  In terms of user friendliness,
> 1.4.4.4->1.5.0 is a leap by an astronomic unit.

thanks for the update. My question now changes to - If i upgrade to git 1.5.x will i loose my earlier git info and all the stuff? I hope having differnt git versions on different machines does not hurts?

Thanks once again for the valuable advice.
regards
Show 5 quoted lines
>
> Ciao,
> Dscho
>
>
-- 
Pradeep
Alex Riesen· Jul 12, 2007, 15:05 UTC · re: pradeep singh · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

On 7/12/07, pradeep singh <pradeep.rautela@gmail.com> wrote:
> If i upgrade to git 1.5.x will i loose my earlier git info and all the stuff?
No
> I hope having differnt git versions on different machines does not hurts?
It does not hurt, but you'll find you like the new one.
Jakub Narebski· Jul 13, 2007, 00:17 UTC · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

Pradeep Singh wrote:
Show 14 quoted lines
> On 7/12/07, Jakub Narebski <jnareb@gmail.com> wrote:
>> [Cc: git@vger.kernel.org, Pradeep Singh <pradeep.rautela@gmail.com>,
>>  Eric Wong <normalperson@yhbt.net> (instaweb creator)]
>>
>> pradeep singh wrote:
>>
>>> Anyway i could not get gitweb running after running git-instaweb.
>>>
>>> Any thoughts on how to setup a gitweb interface ?
>>
>> What information does gitweb/INSTALL lack?
> 
> May be I am running some old version on my Ubuntu Edgy machine
> perhaps? I cannot find such a file anywhere?

You can always look up this file at git.git gitweb (either kernel.org one, or repo.or.cz one), e.g.

  http://repo.or.cz/w/alt-git.git/:gitweb/INSTALL
 
> Looks like it is available in newer versions.
> Does it works for git-1.4.4?

The installation instructions may have changed a bit since then. It is much easier to use 1.5.x series, nevertheless.

-- 
Jakub Narebski
Poland
pradeep singh· Jul 13, 2007, 08:27 UTC · re: Jakub Narebski · lore

Re: git-update-server-info may be required,cannot clone and pull from a remote repository

Thank you all for your valuable suggestions and timely help. I am now able to view the git repo in a web browser.

Thank you once again for help and for a great tool like git. --pradeep

On 7/13/07, Jakub Narebski <jnareb@gmail.com> wrote:
Show 31 quoted lines
> Pradeep Singh wrote:
> > On 7/12/07, Jakub Narebski <jnareb@gmail.com> wrote:
> >> [Cc: git@vger.kernel.org, Pradeep Singh <pradeep.rautela@gmail.com>,
> >>  Eric Wong <normalperson@yhbt.net> (instaweb creator)]
> >>
> >> pradeep singh wrote:
> >>
> >>> Anyway i could not get gitweb running after running git-instaweb.
> >>>
> >>> Any thoughts on how to setup a gitweb interface ?
> >>
> >> What information does gitweb/INSTALL lack?
> >
> > May be I am running some old version on my Ubuntu Edgy machine
> > perhaps? I cannot find such a file anywhere?
>
> You can always look up this file at git.git gitweb (either kernel.org
> one, or repo.or.cz one), e.g.
>
>   http://repo.or.cz/w/alt-git.git/:gitweb/INSTALL
>
> > Looks like it is available in newer versions.
> > Does it works for git-1.4.4?
>
> The installation instructions may have changed a bit since then. It is
> much easier to use 1.5.x series, nevertheless.
>
> --
> Jakub Narebski
> Poland
>
-- 
Pradeep

← back to recent threads