Skip to content

Commit 187a4f1

Browse files
committed
guix: Avoid adding duplicate safe.directory option
1 parent 87c9786 commit 187a4f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/containers/guix/scripts/guix-start

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then
2525
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
2626
fi
2727

28+
# Avoid adding duplicate safe.directory option
29+
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || git config --global --add safe.directory "${WORKSPACE_PATH}"
30+
2831
cd "${WORKSPACE_PATH}"
29-
git config --global --add safe.directory "${WORKSPACE_PATH}"
3032
git status >> /dev/null
3133

3234
export HOSTS="${HOSTS:-x86_64-linux-gnu aarch64-linux-gnu riscv64-linux-gnu

0 commit comments

Comments
 (0)