# .git/index

4 messages from 2009-03-25 to 2009-03-25. Participants: Jon Smirl, Julian Phillips, Junio C Hamano.
Thread: https://gitlist.dev/t/18539

## Jon Smirl, 2009-03-25 17:16

Subject: .git/index
Message-ID: <9e4733910903251016n117c37fdp94f91b2862cd7bf@mail.gmail.com>
URL: https://gitlist.dev/e/9e4733910903251016n117c37fdp94f91b2862cd7bf%40mail.gmail.com

```
I pushed a repo up to my server. I want to view this repo with gitweb
but it is not visible in my project list like my other projects. I
suspect this is because the newly pushed repo is missing .git/index. I
ran update-server-info on the repo and that didn't create .git/index.
What command builds this index?

-- 
Jon Smirl
jonsmirl@gmail.com

```

## Julian Phillips, 2009-03-25 17:52

Subject: Re: .git/index
Message-ID: <alpine.LNX.2.00.0903251749270.11062@reaper.quantumfyre.co.uk>
URL: https://gitlist.dev/e/alpine.LNX.2.00.0903251749270.11062%40reaper.quantumfyre.co.uk
In-Reply-To: <9e4733910903251016n117c37fdp94f91b2862cd7bf@mail.gmail.com>

```
On Wed, 25 Mar 2009, Jon Smirl wrote:

> I pushed a repo up to my server. I want to view this repo with gitweb
> but it is not visible in my project list like my other projects. I
> suspect this is because the newly pushed repo is missing .git/index. I
> ran update-server-info on the repo and that didn't create .git/index.
> What command builds this index?

.git/index is the default name used for what is commonly referred to as 
the staging area these days.  It's only needed when you have a work tree, 
and is expected to be absent from a bare repository.

A more likely cause for a repository to not be picked up by gitweb is 
file permissions.

-- 
Julian

  ---
<MFGolfBal> rit/ara:  There's something really demented about UNIX
             underwear...

```

## Junio C Hamano, 2009-03-25 18:02

Subject: Re: .git/index
Message-ID: <7v1vsl7a78.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v1vsl7a78.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <9e4733910903251016n117c37fdp94f91b2862cd7bf@mail.gmail.com>

```
The index is associated with the work tree.  Since gitweb is supposed to
read and show the history and never the work tree state, it would be a bug
if it required it to operate.

```

## Jon Smirl, 2009-03-25 18:03

Subject: Re: .git/index
Message-ID: <9e4733910903251103m7c78b2e7lee21a25a140bbeca@mail.gmail.com>
URL: https://gitlist.dev/e/9e4733910903251103m7c78b2e7lee21a25a140bbeca%40mail.gmail.com
In-Reply-To: <alpine.LNX.2.00.0903251749270.11062@reaper.quantumfyre.co.uk>

```
On Wed, Mar 25, 2009 at 1:52 PM, Julian Phillips
<julian@quantumfyre.co.uk> wrote:
> On Wed, 25 Mar 2009, Jon Smirl wrote:
>
>> I pushed a repo up to my server. I want to view this repo with gitweb
>> but it is not visible in my project list like my other projects. I
>> suspect this is because the newly pushed repo is missing .git/index. I
>> ran update-server-info on the repo and that didn't create .git/index.
>> What command builds this index?
>
> .git/index is the default name used for what is commonly referred to as the
> staging area these days.  It's only needed when you have a work tree, and is
> expected to be absent from a bare repository.
>
> A more likely cause for a repository to not be picked up by gitweb is file
> permissions.

It needed to be added to the gitweb projects file.

>
> --
> Julian
>
>  ---
> <MFGolfBal> rit/ara:  There's something really demented about UNIX
>            underwear...
>



-- 
Jon Smirl
jonsmirl@gmail.com

```
