All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: git <git@vger.kernel.org>
Subject: Git server, chroot, git gc --auto and "uname: not found"
Date: Wed, 05 Jun 2013 18:37:28 +0200	[thread overview]
Message-ID: <vpqip1sfr93.fsf@anie.imag.fr> (raw)

Hi,

I'm having issues with a Git hosting in a chroot (based on fusion
forge). The problem is that receive-pack triggers a "git gc --auto",
which itself triggers a "git repack", which is a shell-script.

The shell script needs basic commands [1], which are not available within the
chroot.

Is there a clean solution to this problem?

I guess the right solution is "send a patch that ports git-repack.sh to
C" (I thought we already had the server-side in C only, but just
discovered it isn't the case), but I wont have time for that (not soon
at least).

Thanks,

[1] uname, used in git-sh-setup, and then /bin/rm /usr/bin/find /bin/sed
/usr/bin/tr /bin/mkdir /bin/chmod and /bin/mv according to strace.

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

                 reply	other threads:[~2013-06-05 16:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpqip1sfr93.fsf@anie.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.