From f15f2bce0bac8582d4a370d3ce245e01eaad24f2 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Mon, 7 Apr 2025 18:03:15 +0200 Subject: [PATCH] credential.helper needs absolute path --- to_system/home/l_samenv/.bash_samenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to_system/home/l_samenv/.bash_samenv b/to_system/home/l_samenv/.bash_samenv index d5a75bd..5f36982 100644 --- a/to_system/home/l_samenv/.bash_samenv +++ b/to_system/home/l_samenv/.bash_samenv @@ -15,6 +15,6 @@ function gitea_git() ( cd ~/$repo scp -q -r -o BatchMode=yes -o StrictHostKeyChecking=no l_samenv@linse-c:gitea/hooks .git/ grep -q 'https://gitea.psi.ch' .git/config || git remote set-url origin https://gitea.psi.ch/linse/${repo}.git - grep -q '.git/hooks/get_gitea_token' .git/config || git config credential.helper '"! source .git/hooks/get_gitea_token"' + grep -q "$PWD/.git/hooks/get_gitea_token" .git/config || git config credential.helper "$PWD/.git/hooks/get_gitea_token" done )