credential.helper needs absolute path

This commit is contained in:
2025-04-07 18:03:15 +02:00
committed by l_samenv
parent 4f4052968f
commit f15f2bce0b

View File

@ -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
)