From 12bace3552dcf181d007043f2bfd4a53f2d05ff4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 16 Jun 2022 21:45:50 +0200 Subject: [PATCH] Silence a minor git warning No need to pollute the CI log output. --- CI/before_script.android.sh | 3 +++ CI/before_script.linux.sh | 3 +++ CI/before_script.osx.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/CI/before_script.android.sh b/CI/before_script.android.sh index 47655f8ace..cbf8d64905 100755 --- a/CI/before_script.android.sh +++ b/CI/before_script.android.sh @@ -3,6 +3,9 @@ # hack to work around: FFmpeg version is too old, 3.2 is required sed -i s/"NOT FFVER_OK"/"FALSE"/ CMakeLists.txt +# Silence a git warning +git config --global advice.detachedHead false + mkdir -p build cd build diff --git a/CI/before_script.linux.sh b/CI/before_script.linux.sh index 41d271fc70..8b0918827f 100755 --- a/CI/before_script.linux.sh +++ b/CI/before_script.linux.sh @@ -4,6 +4,9 @@ set -xeo pipefail free -m +# Silence a git warning +git config --global advice.detachedHead false + BUILD_UNITTESTS=OFF BUILD_BENCHMARKS=OFF diff --git a/CI/before_script.osx.sh b/CI/before_script.osx.sh index c51eeb61d0..cd293a9cc9 100755 --- a/CI/before_script.osx.sh +++ b/CI/before_script.osx.sh @@ -3,6 +3,9 @@ export CXX=clang++ export CC=clang +# Silence a git warning +git config --global advice.detachedHead false + DEPENDENCIES_ROOT="/private/tmp/openmw-deps/openmw-deps" QT_PATH=$(brew --prefix qt@5) CCACHE_EXECUTABLE=$(brew --prefix ccache)/bin/ccache