Skip to contentSkip to conversation

Problems with repack during push

DISCUSSION Rob Marshall 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Rob Marshall

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.

Signature · 2 lines
Matthieu Moy
http://www-verimag.imag.fr/~moy/
#2 lore raw

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

Rob

Quoted 9 lines · Matthieu Moy
Quoted 2 lines · Rob Marshall

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.