# non-monotonic index error

7 messages from 2008-09-02 to 2008-09-02. Participants: Jon Smirl, Nicolas Pitre, Junio C Hamano.
Thread: https://gitlist.dev/t/15338

## Jon Smirl, 2008-09-02 19:57

Subject: non-monotonic index error
Message-ID: <9e4733910809021257v3012ec89l64b2bb412ac1ebbd@mail.gmail.com>
URL: https://gitlist.dev/e/9e4733910809021257v3012ec89l64b2bb412ac1ebbd%40mail.gmail.com

```
I pulled from linus, did stg rebase linus/master, git push digispeaker
and got these errors.

Where's the problem, at my local machine or the digispeaker one? How
do I fix this?

jonsmirl@terra:~/fs$ stg --version
Stacked GIT 0.14.3.195.g36a0
git version 1.5.6.GIT
Python version 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
jonsmirl@terra:~/fs$

[digispeaker]$ git --version
git version 1.4.4.4


jonsmirl@terra:~/fs$ git push digispeaker
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: refs/heads/asoc-v2 does not point to a valid object!
error: refs/heads/i2c does not point to a valid object!
error: refs/heads/jean does not point to a valid object!
error: refs/heads/master-old does not point to a valid object!
error: refs/remotes/origin/HEAD does not point to a valid object!
error: refs/remotes/origin/master does not point to a valid object!
error: refs/tags/v2.6.26-rc7 does not point to a valid object!
error: refs/tags/v2.6.26-rc8 does not point to a valid object!
error: refs/tags/v2.6.27-rc2 does not point to a valid object!
error: refs/tags/v2.6.27-rc3 does not point to a valid object!
Counting objects: 714, done.
Compressing objects: 100% (235/235), done.
Writing objects: 100% (451/451), 106.87 KiB, done.
Total 451 (delta 351), reused 277 (delta 214)
Unpacking 451 objects
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
fatal: unresolved deltas left after unpacking
error: unpack failed: unpacker exited with error code
To ssh://jonsmirl1@git.digispeaker.com/~/projects/digispeaker-kernel.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to
'ssh://jonsmirl1@git.digispeaker.com/~/projects/digispeaker-kernel.git'
jonsmirl@terra:~/fs$



-- 
Jon Smirl
jonsmirl@gmail.com

```

## Nicolas Pitre, 2008-09-02 20:28

Subject: Re: non-monotonic index error
Message-ID: <alpine.LFD.1.10.0809021625230.23787@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.1.10.0809021625230.23787%40xanadu.home
In-Reply-To: <9e4733910809021257v3012ec89l64b2bb412ac1ebbd@mail.gmail.com>

```
On Tue, 2 Sep 2008, Jon Smirl wrote:

> I pulled from linus, did stg rebase linus/master, git push digispeaker
> and got these errors.
> 
> Where's the problem, at my local machine or the digispeaker one? How
> do I fix this?
> 
> jonsmirl@terra:~/fs$ stg --version
> Stacked GIT 0.14.3.195.g36a0
> git version 1.5.6.GIT
> Python version 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
> jonsmirl@terra:~/fs$
> 
> [digispeaker]$ git --version
> git version 1.4.4.4

This should be upgraded to at least version 1.4.4.5.  If this is a 
Debian distro and they didn't provide an updated package for git then 
please fill a bug with Debian.


Nicolas

```

## Junio C Hamano, 2008-09-02 20:53

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

```
"Jon Smirl" <jonsmirl@gmail.com> writes:

> I pulled from linus, did stg rebase linus/master, git push digispeaker
> and got these errors.
>
> Where's the problem, at my local machine or the digispeaker one? How
> do I fix this?
>
> jonsmirl@terra:~/fs$ stg --version
> Stacked GIT 0.14.3.195.g36a0
> git version 1.5.6.GIT
> Python version 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
> jonsmirl@terra:~/fs$
>
> [digispeaker]$ git --version
> git version 1.4.4.4

It is a bit fishy that stg reports 1.5.6.GIT; does it come with its own
copy of git which is newer than what you have?

```

## Jon Smirl, 2008-09-02 21:01

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

```
On 9/2/08, Junio C Hamano <gitster@pobox.com> wrote:
> "Jon Smirl" <jonsmirl@gmail.com> writes:
>
>  > I pulled from linus, did stg rebase linus/master, git push digispeaker
>  > and got these errors.
>  >
>  > Where's the problem, at my local machine or the digispeaker one? How
>  > do I fix this?
>  >
>  > jonsmirl@terra:~/fs$ stg --version
>  > Stacked GIT 0.14.3.195.g36a0
>  > git version 1.5.6.GIT
>  > Python version 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
>  > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
>  > jonsmirl@terra:~/fs$
>  >
>  > [digispeaker]$ git --version
>  > git version 1.4.4.4
>
>
> It is a bit fishy that stg reports 1.5.6.GIT; does it come with its own
>  copy of git which is newer than what you have?
>

Two different machines - terra and digispeaker



-- 
Jon Smirl
jonsmirl@gmail.com

```

## Jon Smirl, 2008-09-02 21:37

Subject: Re: non-monotonic index error
Message-ID: <9e4733910809021437w40eb1e2cv6379e5d199e234a5@mail.gmail.com>
URL: https://gitlist.dev/e/9e4733910809021437w40eb1e2cv6379e5d199e234a5%40mail.gmail.com
In-Reply-To: <alpine.LFD.1.10.0809021625230.23787@xanadu.home>

```
On 9/2/08, Nicolas Pitre <nico@cam.org> wrote:
> On Tue, 2 Sep 2008, Jon Smirl wrote:
>
>  > I pulled from linus, did stg rebase linus/master, git push digispeaker
>  > and got these errors.
>  >
>  > Where's the problem, at my local machine or the digispeaker one? How
>  > do I fix this?
>  >
>  > jonsmirl@terra:~/fs$ stg --version
>  > Stacked GIT 0.14.3.195.g36a0
>  > git version 1.5.6.GIT
>  > Python version 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
>  > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
>  > jonsmirl@terra:~/fs$
>  >
>  > [digispeaker]$ git --version
>  > git version 1.4.4.4
>
>
> This should be upgraded to at least version 1.4.4.5.  If this is a
>  Debian distro and they didn't provide an updated package for git then
>  please fill a bug with Debian.
>

I just built the current version in my local directory, I'm still
getting the monotonic error on push. Do I need to repack or something?

[digispeaker]$ git --version
git version 1.6.0.1.g7f314.dirty



>
>
>  Nicolas
>


-- 
Jon Smirl
jonsmirl@gmail.com

```

## Nicolas Pitre, 2008-09-02 23:04

Subject: Re: non-monotonic index error
Message-ID: <alpine.LFD.1.10.0809021859030.23787@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.1.10.0809021859030.23787%40xanadu.home
In-Reply-To: <9e4733910809021437w40eb1e2cv6379e5d199e234a5@mail.gmail.com>

```
On Tue, 2 Sep 2008, Jon Smirl wrote:

> On 9/2/08, Nicolas Pitre <nico@cam.org> wrote:
> > On Tue, 2 Sep 2008, Jon Smirl wrote:
> >
> >  > I pulled from linus, did stg rebase linus/master, git push digispeaker
> >  > and got these errors.
> >  >
> >  > Where's the problem, at my local machine or the digispeaker one? How
> >  > do I fix this?
> >  >
> >  > jonsmirl@terra:~/fs$ stg --version
> >  > Stacked GIT 0.14.3.195.g36a0
> >  > git version 1.5.6.GIT
> >  > Python version 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
> >  > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
> >  > jonsmirl@terra:~/fs$
> >  >
> >  > [digispeaker]$ git --version
> >  > git version 1.4.4.4
> >
> >
> > This should be upgraded to at least version 1.4.4.5.  If this is a
> >  Debian distro and they didn't provide an updated package for git then
> >  please fill a bug with Debian.
> >
> 
> I just built the current version in my local directory, I'm still
> getting the monotonic error on push. Do I need to repack or something?

Probably because the version in your local directory is not the one used 
when the push is performed.  Still, on pushes it is the native git 
protocol which is used and in that case there should not be any index 
version issues.

Puzzled.


Nicolas

```

## Jon Smirl, 2008-09-02 23:48

Subject: Re: non-monotonic index error
Message-ID: <9e4733910809021648y5b0db178vc953fb81144881b0@mail.gmail.com>
URL: https://gitlist.dev/e/9e4733910809021648y5b0db178vc953fb81144881b0%40mail.gmail.com
In-Reply-To: <alpine.LFD.1.10.0809021859030.23787@xanadu.home>

```
On 9/2/08, Nicolas Pitre <nico@cam.org> wrote:
> On Tue, 2 Sep 2008, Jon Smirl wrote:
>
>  > On 9/2/08, Nicolas Pitre <nico@cam.org> wrote:
>  > > On Tue, 2 Sep 2008, Jon Smirl wrote:
>  > >
>  > >  > I pulled from linus, did stg rebase linus/master, git push digispeaker
>  > >  > and got these errors.
>  > >  >
>  > >  > Where's the problem, at my local machine or the digispeaker one? How
>  > >  > do I fix this?
>  > >  >
>  > >  > jonsmirl@terra:~/fs$ stg --version
>  > >  > Stacked GIT 0.14.3.195.g36a0
>  > >  > git version 1.5.6.GIT
>  > >  > Python version 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
>  > >  > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
>  > >  > jonsmirl@terra:~/fs$
>  > >  >
>  > >  > [digispeaker]$ git --version
>  > >  > git version 1.4.4.4
>  > >
>  > >
>  > > This should be upgraded to at least version 1.4.4.5.  If this is a
>  > >  Debian distro and they didn't provide an updated package for git then
>  > >  please fill a bug with Debian.
>  > >
>  >
>  > I just built the current version in my local directory, I'm still
>  > getting the monotonic error on push. Do I need to repack or something?
>
>
> Probably because the version in your local directory is not the one used
>  when the push is performed.  Still, on pushes it is the native git
>  protocol which is used and in that case there should not be any index
>  version issues.
>
>  Puzzled.

Whack tree at server.
Clone from linus.
Push to the tree again.

Problem is gone.

--------------------------------------
This may be a clue...

[digispeaker]$ git repack
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
Generating pack...
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
fatal: bad object bce7f793daec3e65ec5c5705d2457b81fe7b5725
[digispeaker]$ git show bce7f793daec3e65ec5c5705d2457b81fe7b5725
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
error: non-monotonic index
fatal: bad object bce7f793daec3e65ec5c5705d2457b81fe7b5725
[digispeaker]$

That's a valid object so it should have been ok. I think my tree got
corrupted somehow.


-- 
Jon Smirl
jonsmirl@gmail.com

```
