# Problems with repack during push

3 messages from 2012-09-10 to 2012-09-10. Participants: Rob Marshall, Matthieu Moy.
Thread: https://gitlist.dev/t/31491

## Rob Marshall, 2012-09-10 16:16

Subject: Problems with repack during push
Message-ID: <504E1256.4020605@gmail.com>
URL: https://gitlist.dev/e/504E1256.4020605%40gmail.com

```
Hi,

Whenever I do a git push origin of a new branch I see:

Auto packing the repository for optimum performance.
/usr/local/libexec/git-core/git-sh-setup: line 241: uname: command not found
/usr/local/libexec/git-core/git-repack: line 56: rm: command not found
/usr/local/libexec/git-core/git-repack: line 85: mkdir: command not found
/usr/local/libexec/git-core/git-repack: line 85: rm: command not found
fatal: 'repack' appears to be a git command, but we were not
able to execute it. Maybe git-repack is broken?
error: failed to run repack

If I do a 'git repack' it works fine, so are these
messages coming from the remote server?

Thanks,

Rob

```

## Matthieu Moy, 2012-09-10 16:26

Subject: Re: Problems with repack during push
Message-ID: <vpqfw6pj13t.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpqfw6pj13t.fsf%40bauges.imag.fr
In-Reply-To: <504E1256.4020605@gmail.com>

```
Rob Marshall <Rob.Marshall17@gmail.com> writes:

> If I do a 'git repack' it works fine, so are these
> messages coming from the remote server?

I guess so, and your remote server has a restricted environment (chroot
or so) with very few commands allowed, which prevents shell-scripts from
executing properly.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

```

## Rob Marshall, 2012-09-10 16:54

Subject: Re: Problems with repack during push
Message-ID: <504E1B54.70603@gmail.com>
URL: https://gitlist.dev/e/504E1B54.70603%40gmail.com
In-Reply-To: <vpqfw6pj13t.fsf@bauges.imag.fr>

```
OK, thanks. I'll check with the guy who set up the server.

Rob

On 9/10/12 12:26 PM, Matthieu Moy wrote:
> Rob Marshall <Rob.Marshall17@gmail.com> writes:
>
>> If I do a 'git repack' it works fine, so are these
>> messages coming from the remote server?
>
> I guess so, and your remote server has a restricted environment (chroot
> or so) with very few commands allowed, which prevents shell-scripts from
> executing properly.
>

```
