Skip to contentSkip to conversation

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

DISCUSSION Evgeniy Polyakov 3 participants 10 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

Signature · 1 line
	Evgeniy Polyakov
#2 lore raw

Hi Petr.

Quoted 11 lines · Petr Baudis
Quoted 4 lines · Evgeniy Polyakov
$ 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.

Signature · 1 line
	Evgeniy Polyakov
#3 lore raw
In reply to Evgeniy Polyakov
Quoted 9 lines · Evgeniy Polyakov
$ 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.

#4 lore raw
Quoted 9 lines · Junio C Hamano
Quoted 7 lines · Evgeniy Polyakov
$ 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/"
Quoted 7 lines
Quoted 4 lines
$ 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.

#5 lore raw

Hi Junio.

Quoted 10 lines · Junio C Hamano
Quoted 2 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.

Signature · 1 line
	Evgeniy Polyakov
#8 lore raw
Quoted 10 lines · Evgeniy Polyakov
Quoted 7 lines · Junio C Hamano
Quoted 3 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 :)

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