support limité de pcrone et pclone

This commit is contained in:
Jephté Clain 2019-09-28 12:33:03 +04:00
parent 914f635fe1
commit 600b8246fa
2 changed files with 7 additions and 5 deletions

View File

@ -1,11 +1,11 @@
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
# Liste de préfixes permettant de taper le nom d'un dépôt plus rapidement e.g # Liste de préfixes permettant de taper le nom d'un dépôt plus rapidement e.g
# repoctl g/ssi-php/myproj # repoctl create g/ssi-php/myproj
# repoctl v:modules/myproj # repoctl create v:modules/myproj
# sont équivalents à # sont équivalents à
# repoctl https://git.univ-reunion.fr/ssi-php/myproj # repoctl create https://git.univ-reunion.fr/ssi-php/myproj
# repoctl git@vcs.univ.run:modules/myproj # repoctl create git@vcs.univ.run:modules/myproj
# Le format est ALIAS=ACTUAL # Le format est ALIAS=ACTUAL
# #
# Ces définitions fonctionnent aussi pour tous les scripts qui utilisent # Ces définitions fonctionnent aussi pour tous les scripts qui utilisent
@ -15,6 +15,7 @@ REPO_PREFIXES=(
g/=https://git.univ-reunion.fr/ g/=https://git.univ-reunion.fr/
v:=git@vcs.univ.run: av/=https://vcs.univ-reunion.fr/anongit/ v:=git@vcs.univ.run: av/=https://vcs.univ-reunion.fr/anongit/
p:=pgit@vcs.univ.run: ap/=https://pvcs.univ-reunion.fr/anongit/ p:=pgit@vcs.univ.run: ap/=https://pvcs.univ-reunion.fr/anongit/
j/=https://git.jclain.fr/
) )
# Définitions des types de dépôt. Le format est NAME:TYPE:PREFIX # Définitions des types de dépôt. Le format est NAME:TYPE:PREFIX
@ -23,6 +24,7 @@ REPO_PREFIXES=(
# type par défaut est 'gitolite' # type par défaut est 'gitolite'
REPO_TYPES=( REPO_TYPES=(
ur:gitea:https://git.univ-reunion.fr/ ur:gitea:https://git.univ-reunion.fr/
jclain:gitea:https://git.jclain.fr/
) )
# Configuration de l'accès à l'API gogs # Configuration de l'accès à l'API gogs

View File

@ -250,7 +250,7 @@ function cxone_init() {
REPO_PREFIXES=() REPO_PREFIXES=()
REPO_TYPES=() REPO_TYPES=()
set_defaults pcrone set_defaults repoctl
# Traduire les aliases éventuels # Traduire les aliases éventuels
local asrcdest asrc adest local asrcdest asrc adest