change git:// protocol for accessing github to https:// protocol
https://github.blog/2021-09-01-improving-git-protocol-security-github/
This commit is contained in:
@ -8,12 +8,12 @@ fi
|
||||
|
||||
export GIT_CONFIG_COUNT=1
|
||||
export GIT_CONFIG_KEY_0="url.$GITHUB_PROXY_DIR/.insteadOf"
|
||||
export GIT_CONFIG_VALUE_0=git://github.com/
|
||||
export GIT_CONFIG_VALUE_0=https://github.com/
|
||||
|
||||
echo "Redirecting git://github.com urls to local cache..."
|
||||
echo "Redirecting https://github.com urls to local cache..."
|
||||
|
||||
function deactivate_git_cache {
|
||||
echo "Removing git://github.com redirect..."
|
||||
echo "Removing https://github.com redirect..."
|
||||
unset GIT_CONFIG_COUNT
|
||||
unset GIT_CONFIG_KEY_0
|
||||
unset GIT_CONFIG_VALUE_0
|
||||
|
||||
Reference in New Issue
Block a user