]> git.ipfire.org Git - thirdparty/shadow.git/commit
Work around git safe.directory enforcement
authorSerge Hallyn <serge@hallyn.com>
Mon, 25 Apr 2022 15:42:41 +0000 (10:42 -0500)
committerSerge Hallyn <serge@hallyn.com>
Mon, 25 Apr 2022 15:52:29 +0000 (10:52 -0500)
commit5a7ed86fbad8ba5659c011647b68e2bd286ff4cc
treefbc1af46fcc7f74459a57a1e96c1c484d2442354
parent9cdb5251b6c30487a7d935a1a7827f493249479d
Work around git safe.directory enforcement

Git wants to ensure that you do not read .git owned by other users.
But we fetch+build as 'build' user, and run tests as root user.  Those
tests calculate git topdir using git rev-parse --show-toplevel, which
git now fails.

Setting safe.directory, seems wrong.  Let's just use bash to figure
out the top dir.
tests/common/config.sh