bugfix(vim-sensible): use github url due to issues with some git versions not following
authorAJ ONeal <coolaj86@gmail.com>
Fri, 5 Nov 2021 10:21:49 +0000 (04:21 -0600)
committerAJ ONeal <aj@therootcompany.com>
Sun, 14 Nov 2021 09:12:11 +0000 (09:12 +0000)
redirect

vim-sensible/install.ps1
vim-sensible/install.sh

index 4e460513bdd02fab47ce49a7b585d627885ad9f4..8bd13bf783cc0e49741884635712c5f86d723cf3 100644 (file)
@@ -4,4 +4,10 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) {
     New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null
 }
 Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-sensible" -Recurse -ErrorAction Ignore
-& git clone --depth=1 https://tpope.io/vim/sensible.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-sensible"
+
+# Note: we've had resolution issues in the past, and it doesn't seem likely that tpope
+#       will switch from using GitHub as the primary host, so we skip the redirect
+#       and use GitHub directly. Open to changing this back in the future.
+#$sensible_repo = "https://tpope.io/vim/sensible.git"
+$sensible_repo = "https://github.com/tpope/vim-sensible.git"
+& git clone --depth=1 "$sensible_repo" "$Env:USERPROFILE\.vim\pack\plugins\start\vim-sensible"
index 50a84edf4a7f21df649ee7851a283233a1d432d1..6df2de5e09c48a2293ba8a1b4b6c3ca5ba150cec 100644 (file)
@@ -6,7 +6,14 @@ function __init_vim_sensible() {
 
     mkdir -p "$HOME/.vim/pack/plugins/start"
     rm -rf "$HOME/.vim/pack/plugins/start/sensible" "$HOME/.vim/pack/plugins/start/vim-sensible"
-    git clone --depth=1 https://tpope.io/vim/sensible.git "$HOME/.vim/pack/plugins/start/vim-sensible"
+
+    # Note: we've had resolution issues in the past, and it doesn't seem likely
+    #       that tpope will switch from using GitHub as the primary host, so we
+    #       skip the redirect and use GitHub directly.
+    #       Open to changing this back in the future.
+    #my_sensible_repo="https://tpope.io/vim/sensible.git"
+    my_sensible_repo="https://github.com/tpope/vim-sensible.git"
+    git clone --depth=1 "${my_sensible_repo}" "$HOME/.vim/pack/plugins/start/vim-sensible"
 }
 
 __init_vim_sensible