From a50419da1cd83f18e388859c5ed8ccce07c53dd9 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 28 Apr 2024 10:27:29 +0200 Subject: [PATCH] Fix test_version.fish for Ubuntu Noble Numbat Docker build git_version_gen fails on Noble Numbat because modern Git refuses to read repo-local config if owned by another user. fishuser@a4263f53c93e:~/fish-build$ cd /fish-source/ fishuser@a4263f53c93e:/fish-source$ git describe --always --dirty fatal: detected dubious ownership in repository at '/fish-source' To add an exception for this directory, call: Allow reading it (though that doesn't seem necessary here, it would be better to ignore it). --- docker/context/fish_run_tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/context/fish_run_tests.sh b/docker/context/fish_run_tests.sh index 1b3d7894d..2adb0f21d 100755 --- a/docker/context/fish_run_tests.sh +++ b/docker/context/fish_run_tests.sh @@ -4,6 +4,7 @@ # It is the entry point for running Docker-based tests. cd ~/fish-build +git config --global --add safe.directory /fish-source cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /fish-source "$@" # Spawn a shell if FISH_RUN_SHELL_BEFORE_TESTS is set.