Skip to content

Commit

Permalink
guix: Avoid adding duplicate safe.directory option
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Nov 12, 2024
1 parent 87c9786 commit 187a4f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/containers/guix/scripts/guix-start
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
fi

# Avoid adding duplicate safe.directory option
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || git config --global --add safe.directory "${WORKSPACE_PATH}"

cd "${WORKSPACE_PATH}"
git config --global --add safe.directory "${WORKSPACE_PATH}"
git status >> /dev/null

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

0 comments on commit 187a4f1

Please sign in to comment.