# "error: non-monotonic index" during fresh linux-2.6.git cloning.

10 messages from 2008-07-19 to 2008-07-20. Participants: Evgeniy Polyakov, Junio C Hamano, Petr Baudis.
Thread: https://gitlist.dev/t/14536

## Evgeniy Polyakov, 2008-07-19 17:47

Subject: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <20080719174742.GA4253@2ka.mipt.ru>
URL: https://gitlist.dev/e/20080719174742.GA4253%402ka.mipt.ru

```
Hi.

I'm getting above error each time I'm tying to clone current 2.6 tree.
Archives tell that it happens when local index is currupted, but I do
not have local tree, it is a fresh clone in an empty dir.

$ git clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Getting alternates list for http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
Getting pack list for http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
Getting index for pack 81cec7c6b26c755e466a79de8dbe1c7b827a48d6
error: non-monotonic index
/usr/bin/git-clone: line 33:  2025 Segmentation fault git-http-fetch -v -a -w "$tname" "$name" "$1/"

$ git --version
git version 1.4.4.4

Fresh 32bit Debian testing.

It worked before (at least several months ago) and works with 1.5.2.5.

-- 
	Evgeniy Polyakov

```

## Junio C Hamano, 2008-07-19 18:10

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <7vfxq521ab.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vfxq521ab.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20080719174742.GA4253@2ka.mipt.ru>

```
Evgeniy Polyakov <johnpol@2ka.mipt.ru> writes:

> $ git clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> Getting alternates list for http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
> Getting pack list for http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
> Getting index for pack 81cec7c6b26c755e466a79de8dbe1c7b827a48d6
> error: non-monotonic index
> /usr/bin/git-clone: line 33:  2025 Segmentation fault git-http-fetch -v -a -w "$tname" "$name" "$1/"
>
> $ git --version
> git version 1.4.4.4

The repository you are cloning uses pack idx version #2; 1.4.4.4 predates it
by a wide margin.

```

## Junio C Hamano, 2008-07-19 18:15

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <7v8wvx211n.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v8wvx211n.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <7vfxq521ab.fsf@gitster.siamese.dyndns.org>

```
Junio C Hamano <gitster@pobox.com> writes:

> Evgeniy Polyakov <johnpol@2ka.mipt.ru> writes:
>
>> $ git clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>> Getting alternates list for http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
>> Getting pack list for http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
>> Getting index for pack 81cec7c6b26c755e466a79de8dbe1c7b827a48d6
>> error: non-monotonic index
>> /usr/bin/git-clone: line 33:  2025 Segmentation fault git-http-fetch -v -a -w "$tname" "$name" "$1/"
>>
>> $ git --version
>> git version 1.4.4.4
>>
>> Fresh 32bit Debian testing.
>
> The repository you are cloning uses pack idx version #2; 1.4.4.4 predates it
> by a wide margin.

By the way, Debian folks are very aware of the issue and already has a
backported material to cut a 1.4.4.5, but I do not know what the release
schedule for their update is.

Is it an option for you to update to a more modern version from say
backports.org?  Everybody using git for anything serious should be using
1.5.3 or newer these days.

```

## Petr Baudis, 2008-07-19 18:20

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <20080719182014.GD32184@machine.or.cz>
URL: https://gitlist.dev/e/20080719182014.GD32184%40machine.or.cz
In-Reply-To: <20080719174742.GA4253@2ka.mipt.ru>

```
On Sat, Jul 19, 2008 at 09:47:43PM +0400, Evgeniy Polyakov wrote:
> $ git --version
> git version 1.4.4.4
> 
> Fresh 32bit Debian testing.

Are you sure?  http://packages.debian.org/testing/git-core says

	Package: git-core (1:1.5.6.2-1)

Your sounds more like the Debian stable version.

				Petr "Pasky" Baudis

```

## Evgeniy Polyakov, 2008-07-19 19:59

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <20080719195909.GA5093@2ka.mipt.ru>
URL: https://gitlist.dev/e/20080719195909.GA5093%402ka.mipt.ru
In-Reply-To: <7v8wvx211n.fsf@gitster.siamese.dyndns.org>

```
Hi Junio.

On Sat, Jul 19, 2008 at 11:15:16AM -0700, Junio C Hamano (gitster@pobox.com) wrote:
> > The repository you are cloning uses pack idx version #2; 1.4.4.4 predates it
> > by a wide margin.
> 
> By the way, Debian folks are very aware of the issue and already has a
> backported material to cut a 1.4.4.5, but I do not know what the release
> schedule for their update is.
> 
> Is it an option for you to update to a more modern version from say
> backports.org?  Everybody using git for anything serious should be using
> 1.5.3 or newer these days.

It is very development test machine, there is no need to use git at all,
it is just a convenient way to get a needed version via 'git clone; git reset'.

I posted it so it would be stored in archive, that old enough git
version does not work with recent trees, so one should upgrade if this
error occures.

-- 
	Evgeniy Polyakov

```

## Evgeniy Polyakov, 2008-07-19 20:06

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <20080719200609.GB5093@2ka.mipt.ru>
URL: https://gitlist.dev/e/20080719200609.GB5093%402ka.mipt.ru
In-Reply-To: <20080719182014.GD32184@machine.or.cz>

```
Hi Petr.

On Sat, Jul 19, 2008 at 08:20:14PM +0200, Petr Baudis (pasky@suse.cz) wrote:
> On Sat, Jul 19, 2008 at 09:47:43PM +0400, Evgeniy Polyakov wrote:
> > $ git --version
> > git version 1.4.4.4
> > 
> > Fresh 32bit Debian testing.
> 
> Are you sure?  http://packages.debian.org/testing/git-core says
> 
> 	Package: git-core (1:1.5.6.2-1)
> 
> Your sounds more like the Debian stable version.

It is that version indeed:
apt-cache show git-core
...
 Version: 1:1.5.6.2-1
...

but it was imported there quite recently, so 'apt-get upgrade' will not
catch up with major version change. 1.5 works ok, I pointed to this
issue, so that resolution for the problem (i.e. upgrade to the more
recent version) could be found in archive.

-- 
	Evgeniy Polyakov

```

## Junio C Hamano, 2008-07-19 22:00

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <7v8wvxzg97.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v8wvxzg97.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20080719195909.GA5093@2ka.mipt.ru>

```
Evgeniy Polyakov <johnpol@2ka.mipt.ru> writes:

> I posted it so it would be stored in archive, that old enough git
> version does not work with recent trees, so one should upgrade if this
> error occures.

Thanks, but you are about 5 days too late ;-)

    http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=88402

```

## Evgeniy Polyakov, 2008-07-20 06:41

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <20080720064137.GA9654@2ka.mipt.ru>
URL: https://gitlist.dev/e/20080720064137.GA9654%402ka.mipt.ru
In-Reply-To: <7v8wvxzg97.fsf@gitster.siamese.dyndns.org>

```
On Sat, Jul 19, 2008 at 03:00:20PM -0700, Junio C Hamano (gitster@pobox.com) wrote:
> > I posted it so it would be stored in archive, that old enough git
> > version does not work with recent trees, so one should upgrade if this
> > error occures.
> 
> Thanks, but you are about 5 days too late ;-)
> 
>     http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=88402

Better late than never :)

-- 
	Evgeniy Polyakov

```

## Junio C Hamano, 2008-07-20 06:52

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <7vprp9f3ne.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vprp9f3ne.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20080720064137.GA9654@2ka.mipt.ru>

```
Evgeniy Polyakov <johnpol@2ka.mipt.ru> writes:

> On Sat, Jul 19, 2008 at 03:00:20PM -0700, Junio C Hamano (gitster@pobox.com) wrote:
>> > I posted it so it would be stored in archive, that old enough git
>> > version does not work with recent trees, so one should upgrade if this
>> > error occures.
>> 
>> Thanks, but you are about 5 days too late ;-)
>> 
>>     http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=88402
>
> Better late than never :)

You should have said "better redundant than never", though ;-)

```

## Evgeniy Polyakov, 2008-07-20 07:21

Subject: Re: "error: non-monotonic index" during fresh linux-2.6.git cloning.
Message-ID: <20080720072105.GA3918@2ka.mipt.ru>
URL: https://gitlist.dev/e/20080720072105.GA3918%402ka.mipt.ru
In-Reply-To: <7vprp9f3ne.fsf@gitster.siamese.dyndns.org>

```
On Sat, Jul 19, 2008 at 11:52:53PM -0700, Junio C Hamano (gitster@pobox.com) wrote:
> >>     http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=88402
> >
> > Better late than never :)
> 
> You should have said "better redundant than never", though ;-)

Indeed, although there were no mention that error occurs with clone, so
I would find it :)

-- 
	Evgeniy Polyakov

```
