From 137dfa96747d472303901b2380ade07405856181 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 30 Aug 2022 14:58:08 +0400 Subject: [PATCH] repoctl, uproject: ne plus enlever le suffixe .git --- repoctl | 2 +- uproject | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repoctl b/repoctl index dc1f67b..1f9a363 100755 --- a/repoctl +++ b/repoctl @@ -47,7 +47,7 @@ ACTIONS } function repoctl_init() { - repourl="${1%.git}" + repourl="$1" [ -n "$repourl" ] || return rname= rtype=gitolite diff --git a/uproject b/uproject index 6918fb8..046c6ea 100755 --- a/uproject +++ b/uproject @@ -242,7 +242,7 @@ done # Traiter les commandes function cxone_init() { - repourl="${1%.git}" + repourl="$1" [ -n "$repourl" ] || return rname= rtype=gitolite @@ -465,7 +465,7 @@ NR <= 2 { next } done else - repourl="${1%.git}" + repourl="$1" [ -n "$repourl" ] || die "Vous devez spécifier l'url du dépôt git" destdir="$2"