Skip to content

Commit

Permalink
Fix game-ci#428. Possible fix for game-ci#430
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKahr committed Mar 5, 2023
1 parent 92d89da commit 5b98600
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/platforms/ubuntu/steps/set_gitcredential.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ else
git config --global credential.helper store
git config --global --replace-all url."https://token:$GIT_PRIVATE_TOKEN@github.com/".insteadOf ssh://git@github.com/
git config --global --add url."https://token:$GIT_PRIVATE_TOKEN@github.com/".insteadOf git@github.com

git config --global --add url."https://token:$GIT_PRIVATE_TOKEN@github.com/".insteadOf "https://github.com/"

git config --global url."https://ssh:$GIT_PRIVATE_TOKEN@github.com/".insteadOf "ssh://git@github.com/"
git config --global url."https://git:$GIT_PRIVATE_TOKEN@github.com/".insteadOf "git@github.com:"

# Enable rewriting urls in lfs based on https://github.com/git-lfs/git-lfs/issues/4173#issuecomment-1367446741
git config --global lfs.transfer.enablehrefrewrite true

fi

echo "---------- git config --list -------------"
Expand Down
5 changes: 4 additions & 1 deletion dist/platforms/windows/set_gitcredential.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ else {
git config --global credential.helper store
git config --global --replace-all "url.https://token:$env:GIT_PRIVATE_TOKEN@github.com/".insteadOf "ssh://git@github.com/"
git config --global --add "url.https://token:$env:GIT_PRIVATE_TOKEN@github.com/".insteadOf "git@github.com"

git config --global --add "url.https://token:$env:GIT_PRIVATE_TOKEN@github.com/".insteadOf "https://github.com/"

git config --global "url.https://ssh:$env:GIT_PRIVATE_TOKEN@github.com/".insteadOf "ssh://git@github.com/"
git config --global "url.https://git:$env:GIT_PRIVATE_TOKEN@github.com/".insteadOf "git@github.com:"

# Enable rewriting urls in lfs based on https://github.com/git-lfs/git-lfs/issues/4173#issuecomment-1367446741
git config --global lfs.transfer.enablehrefrewrite true
}

Write-Host "---------- git config --list -------------"
Expand Down

0 comments on commit 5b98600

Please sign in to comment.