# corrupted repository?

3 messages from 2008-10-01 to 2008-10-02. Participants: Francois Pepin, Shawn O. Pearce.
Thread: https://gitlist.dev/t/15740

## Francois Pepin, 2008-10-01 21:29

Subject: corrupted repository?
Message-ID: <48E3EBC2.7090107@cs.mcgill.ca>
URL: https://gitlist.dev/e/48E3EBC2.7090107%40cs.mcgill.ca

```
Hi,

The repository on my OS X machine (10.5.5) seems to have been suddenly 
become corrupted in a strange way.

Everything seems to be working properly there (git fsck --full returns 
normally with no output), but I cannot clone or pull from my other machines:

(iduna is the name of the OS X machine)
[francois@monch ~]$ git clone iduna:git iduna2
Initialized empty Git repository in /bioinfo/home/francois/iduna2/.git/
Password:
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption 
on the remote side.
remote: fatal: exec pack-objects failed.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

I have the same issue from the same machine:
[francois@Iduna ~]$ git clone localhost:git git2
Initialized empty Git repository in /Users/francois/git2/.git/
remote: fatal: exec pack-objects failed.
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption 
on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

But not if I just do it locally:
[francois@Iduna ~]$ git clone git git2
Initialized empty Git repository in /Users/francois/git2/.git/
Checking out files:   2% (140/5273)
[I cancelled it at this point]

I am running git 1.6.0.2 on the mac, and have only recently updated it 
so that might have a role to play.

Any suggestion would be welcome to fix this issue, and I'll be more than 
happy to provide whatever more information could useful.

Francois

```

## Shawn O. Pearce, 2008-10-02 14:29

Subject: Re: corrupted repository?
Message-ID: <20081002142952.GP21310@spearce.org>
URL: https://gitlist.dev/e/20081002142952.GP21310%40spearce.org
In-Reply-To: <48E3EBC2.7090107@cs.mcgill.ca>

```
Francois Pepin <fpepin@cs.mcgill.ca> wrote:
> Everything seems to be working properly there (git fsck --full returns  
> normally with no output), but I cannot clone or pull from my other 
> machines:
...
> [francois@Iduna ~]$ git clone localhost:git git2
> Initialized empty Git repository in /Users/francois/git2/.git/
> remote: fatal: exec pack-objects failed.

Your git-upload-pack cannot find git-pack-objects.  It sounds like
Git was incorrectly installed on your system.

  which git-upload-pack ?
  which git ?
  are they in the same directory?
  did you possibly move git after installing it?

  git --exec-path?
  does that exist?
  does it have git-pack-objects inside it?

> I am running git 1.6.0.2 on the mac, and have only recently updated it  
> so that might have a role to play.

I think it is the upgrade.  It sounds like its not installed correcly
because the helpers in libexec/git-core cannot be found.

-- 
Shawn.

```

## Francois Pepin, 2008-10-02 18:03

Subject: Re: corrupted repository?
Message-ID: <48E50CD9.9050907@cs.mcgill.ca>
URL: https://gitlist.dev/e/48E50CD9.9050907%40cs.mcgill.ca
In-Reply-To: <20081002142952.GP21310@spearce.org>

```
 > Your git-upload-pack cannot find git-pack-objects.  It sounds like
 > Git was incorrectly installed on your system.

You are correct. I had created some symlinks for the binaries because 
the changes for the environment variable didn't see to work for me, 
either from the installer package or editing the 
~/.MacOSX/environment.plist. I had a link to git-upload-pack in /usr/bin 
but none to git, thereby creating the issue.

I'm a bit confused as to how it happened, but's all been fixed and I'm a 
happy camper again.

Thanks for the help,

Francois

```
