spip dl sur une installation existante : conservation de la branche et du mode ssh/https
Il semblerait que sur une installation existante, la commande spip dl
ne conserve pas toujours la branche courante et le mode ssh ou https d'origine.
j'ai testé 2 fois en faisant un 1er checkout sur le master, puis avec juste spip dl
pour mettre à jour, et ça rebascule sur la branche par défaut. Et ça remet certains dépôts en https (pas tous).
Test 1 : 1er checkout sur master + mode ssh :
$ spip dl spip git@git.spip.net -b master
$ git status
Sur la branche master
Votre branche est à jour avec 'origin/master'.
$ git config --get remote.origin.url
git@git.spip.net:spip/spip.git
$ spip dl
$ git status
Sur la branche 3.2
Votre branche est à jour avec 'origin/3.2'.
$ git config --get remote.origin.url
git@git.spip.net:spip/spip.git
Le dépôt Spip a bien conservé le mode ssh d'origine, mais les plugins dist sont passés en https :
$ cd plugins-dist/filtres_images
$ git config --get remote.origin.url
https://git.spip.net/spip/filtres_images.git
On se retrouve avec un mélange de ssh/https, outch.
Test 2 : 1er checkout sur master + mode https (le défaut) :
$ spip dl -b master
$ git status
Sur la branche master
Votre branche est à jour avec 'origin/master'.
$ git config --get remote.origin.url
https://git.spip.net/spip/spip.git
$ spip dl
$ git status
Sur la branche 3.2
Votre branche est à jour avec 'origin/3.2'.
$ git config --get remote.origin.url
https://git.spip.net/spip/spip.git
Après je fais ces remarques en supposant que sur une installation existante, la commande spip dl
est suffisante, sans avoir à repréciser à chaque fois les paramètres pour la branche et le mode.