mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +00:00
use multiple env variables to force git https
This commit is contained in:
parent
3689f8ef52
commit
595a02383e
@ -16,7 +16,11 @@
|
|||||||
$DRY_RUN_CMD mkdir --parents $VERBOSE_ARG $(dirname "${config.dotfilesPath}")
|
$DRY_RUN_CMD mkdir --parents $VERBOSE_ARG $(dirname "${config.dotfilesPath}")
|
||||||
|
|
||||||
# Force HTTPS because anonymous SSH doesn't work
|
# Force HTTPS because anonymous SSH doesn't work
|
||||||
$DRY_RUN_CMD GIT_CONFIG_KEY_0="url.https://github.com/.insteadOf" ${pkgs.git}/bin/git clone ${config.dotfilesRepo} "${config.dotfilesPath}"
|
GIT_CONFIG_COUNT=1 \
|
||||||
|
GIT_CONFIG_KEY_0="url.https://github.com/.insteadOf" \
|
||||||
|
GIT_CONFIG_VALUE_0="git@github.com:" \
|
||||||
|
$DRY_RUN_CMD \
|
||||||
|
${pkgs.git}/bin/git clone ${config.dotfilesRepo} "${config.dotfilesPath}"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user