.bash_samenv: fix url and credential helper code
This commit is contained in:
@ -14,7 +14,7 @@ function gitea_git() (
|
|||||||
for repo in "$@"; do
|
for repo in "$@"; do
|
||||||
cd ~/$repo
|
cd ~/$repo
|
||||||
scp -q -r -o BatchMode=yes -o StrictHostKeyChecking=no l_samenv@linse-c:gitea/hooks .git/
|
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/${repor}.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 '.git/hooks/get_gitea_token' .git/config || git config credential.helper '"! source .git/hooks/get_gitea_token"'
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user