From bc8bc838769205ed071441c11416e925d245242e Mon Sep 17 00:00:00 2001 From: Konstantin <78656278+amogus07@users.noreply.github.com> Date: Sat, 11 Nov 2023 23:59:29 -0800 Subject: [PATCH] fix dubious ownership error in auto-cpufreq-installer (#597) When trying to install auto-cpufreq in Fedora 39, I got the following error: "Detected Git repository, but failed because of dubious ownership" Adding the line at the top of the install function according to https://sam.hooke.me/note/2023/08/poetry-fixing-dubious-ownership-error/ solved the error for me. --- auto-cpufreq-installer | 1 + 1 file changed, 1 insertion(+) diff --git a/auto-cpufreq-installer b/auto-cpufreq-installer index 72091714..3dc23413 100755 --- a/auto-cpufreq-installer +++ b/auto-cpufreq-installer @@ -59,6 +59,7 @@ function setup_venv { # tool install function install { + git config --global --add safe.directory $(pwd) python -m pip install . mkdir -p /usr/local/share/auto-cpufreq/ cp -r scripts/ /usr/local/share/auto-cpufreq/