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

10 messages from 2007-07-11 to 2007-07-13. Participants: pradeep singh, Alex Riesen, Jakub Narebski, Johannes Schindelin.
Thread: https://gitlist.dev/t/8983

## pradeep singh, 2007-07-11 14:08

Subject: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <a901b49a0707110708o7c883bb0s707d9791f344f1f6@mail.gmail.com>
URL: https://gitlist.dev/e/a901b49a0707110708o7c883bb0s707d9791f344f1f6%40mail.gmail.com

```
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, 2007-07-11 14:31

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <81b0412b0707110731n4ffa25afoea5395a856869325@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0707110731n4ffa25afoea5395a856869325%40mail.gmail.com
In-Reply-To: <a901b49a0707110708o7c883bb0s707d9791f344f1f6@mail.gmail.com>

```
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.

> 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, 2007-07-12 05:27

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <a901b49a0707112227m2ea746ectd367031fdc8d3537@mail.gmail.com>
URL: https://gitlist.dev/e/a901b49a0707112227m2ea746ectd367031fdc8d3537%40mail.gmail.com
In-Reply-To: <81b0412b0707110731n4ffa25afoea5395a856869325@mail.gmail.com>

```
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, 2007-07-12 09:58

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <f74tk8$k21$1@sea.gmane.org>
URL: https://gitlist.dev/e/f74tk8%24k21%241%40sea.gmane.org
In-Reply-To: <a901b49a0707112227m2ea746ectd367031fdc8d3537@mail.gmail.com>

```
[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, 2007-07-12 12:52

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <a901b49a0707120552y649fba20p4fa14ca48be4be54@mail.gmail.com>
URL: https://gitlist.dev/e/a901b49a0707120552y649fba20p4fa14ca48be4be54%40mail.gmail.com
In-Reply-To: <a901b49a0707120550i9361e30wc5811bd5d3305f59@mail.gmail.com>

```
sorry forgot to CC gitlist in my last mail.
On 7/12/07, pradeep singh <pradeep.rautela@gmail.com> 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?
>
> 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, 2007-07-12 13:13

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <Pine.LNX.4.64.0707121411070.4516@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0707121411070.4516%40racer.site
In-Reply-To: <a901b49a0707120552y649fba20p4fa14ca48be4be54@mail.gmail.com>

```
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.

Ciao,
Dscho

```

## pradeep singh, 2007-07-12 13:32

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <a901b49a0707120632m1654733as94839e88bd993bb1@mail.gmail.com>
URL: https://gitlist.dev/e/a901b49a0707120632m1654733as94839e88bd993bb1%40mail.gmail.com
In-Reply-To: <Pine.LNX.4.64.0707121411070.4516@racer.site>

```
On 7/12/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> 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
>
> Ciao,
> Dscho
>
>


-- 
Pradeep

```

## Alex Riesen, 2007-07-12 15:05

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <81b0412b0707120805l105bc692yfa8698293683f492@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0707120805l105bc692yfa8698293683f492%40mail.gmail.com
In-Reply-To: <a901b49a0707120632m1654733as94839e88bd993bb1@mail.gmail.com>

```
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, 2007-07-13 00:17

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <200707130217.37817.jnareb@gmail.com>
URL: https://gitlist.dev/e/200707130217.37817.jnareb%40gmail.com
In-Reply-To: <a901b49a0707120550i9361e30wc5811bd5d3305f59@mail.gmail.com>

```
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 singh, 2007-07-13 08:27

Subject: Re: git-update-server-info may be required,cannot clone and pull from a remote repository
Message-ID: <a901b49a0707130127y4ec116bbr3747df1a1e0a86ce@mail.gmail.com>
URL: https://gitlist.dev/e/a901b49a0707130127y4ec116bbr3747df1a1e0a86ce%40mail.gmail.com
In-Reply-To: <200707130217.37817.jnareb@gmail.com>

```
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:
> 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

```
