threads / discuss / 14536

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

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

## tl;dr

10 messages between Jul 19, 2008 and Jul 20, 2008.

replies: 9people: 3as markdown or json

Evgeniy Polyakov· Jul 19, 2008, 17:47 UTC · lore
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· Jul 19, 2008, 18:10 UTC · re: Evgeniy Polyakov · lore

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

Evgeniy Polyakov <johnpol@2ka.mipt.ru> writes:
Show 9 quoted lines
> $ 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· Jul 19, 2008, 18:15 UTC · re: Junio C Hamano · lore

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

Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> 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.

Evgeniy Polyakov· Jul 19, 2008, 19:59 UTC · re: Junio C Hamano · lore

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

Hi Junio.
On Sat, Jul 19, 2008 at 11:15:16AM -0700, Junio C Hamano (gitster@pobox.com) wrote:
Show 10 quoted lines
> > 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
Junio C Hamano· Jul 19, 2008, 22:00 UTC · re: Evgeniy Polyakov · lore

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

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· Jul 20, 2008, 06:41 UTC · re: Junio C Hamano · lore

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

On Sat, Jul 19, 2008 at 03:00:20PM -0700, Junio C Hamano (gitster@pobox.com) wrote:
Show 7 quoted lines
> > 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· Jul 20, 2008, 06:52 UTC · re: Evgeniy Polyakov · lore

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

Evgeniy Polyakov <johnpol@2ka.mipt.ru> writes:
Show 10 quoted lines
> 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· Jul 20, 2008, 07:21 UTC · re: Junio C Hamano · lore

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

On Sat, Jul 19, 2008 at 11:52:53PM -0700, Junio C Hamano (gitster@pobox.com) wrote:
Show 5 quoted lines
> >>     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
Petr Baudis· Jul 19, 2008, 18:20 UTC · re: Evgeniy Polyakov · lore

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

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· Jul 19, 2008, 20:06 UTC · re: Petr Baudis · lore

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

Hi Petr.
On Sat, Jul 19, 2008 at 08:20:14PM +0200, Petr Baudis (pasky@suse.cz) wrote:
Show 11 quoted lines
> 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

← back to recent threads