Skip to content

Commit 1470160

Browse files
committed
guix: Expose GIT_COMMON_DIR in container as readonly
When using worktrees or submodules, you'll see a `.git' plain text file at the root of your working tree instead of the usual `.git' directory. This plain text file will point to the real GIT_DIR, under the GIT_COMMON_DIR. From experimentation, the full GIT_COMMON_DIR is required to exist for operations such as git-archive(1), so we expose it as readonly inside the container.
1 parent f5a6ac4 commit 1470160

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/guix/guix-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ for host in ${HOSTS=x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv
105105
--pure \
106106
--no-cwd \
107107
--share="$PWD"=/bitcoin \
108+
--expose="$(git rev-parse --git-common-dir)" \
108109
${SOURCES_PATH:+--share="$SOURCES_PATH"} \
109110
${ADDITIONAL_GUIX_ENVIRONMENT_FLAGS} \
110111
-- env HOST="$host" \

0 commit comments

Comments
 (0)