add ssh compatabilty for gitconfigs
This commit is contained in:
@ -27,8 +27,13 @@ for config in "$CONFIG_DIR"/*.gitconfig; do
|
|||||||
echo "Create config for $domain"
|
echo "Create config for $domain"
|
||||||
|
|
||||||
cat <<EOF >> "$HOME/.gitconfig"
|
cat <<EOF >> "$HOME/.gitconfig"
|
||||||
|
|
||||||
[includeIf "hasconfig:remote.*.url:https://**$domain/**"]
|
[includeIf "hasconfig:remote.*.url:https://**$domain/**"]
|
||||||
path = $config
|
path = $config
|
||||||
|
[includeIf "hasconfig:remote.*.url:ssh://git@**$domain/**"]
|
||||||
|
path = $config
|
||||||
|
[includeIf "hasconfig:remote.*.url:git@$domain:**"]
|
||||||
|
path = $config
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user