repoctl: correction de l'url généré des dépôts git
This commit is contained in:
parent
e071b81ad7
commit
9d7594356e
2
repoctl
2
repoctl
|
@ -132,7 +132,7 @@ function gogs_setvars() {
|
|||
|
||||
function _update_origin() {
|
||||
estep "Mise à jour de l'origine"
|
||||
git remote set-url origin "$repourl"
|
||||
git remote set-url origin "${repourl%.git}.git"
|
||||
}
|
||||
function _update_origin_push() {
|
||||
if ask_yesno "Faut-il faire git push?" O; then
|
||||
|
|
4
uproject
4
uproject
|
@ -591,11 +591,11 @@ result: $result"
|
|||
|
||||
if [ -n "$tmpdestdir" ]; then
|
||||
setxx destname=abspath "$destdir" // basename
|
||||
git clone "$repourl" "$tmpdestdir/$destname" || die
|
||||
git clone "${repourl%.git}.git" "$tmpdestdir/$destname" || die
|
||||
mv "$tmpdestdir/$destname/.git" "$destdir" || die
|
||||
ac_clean "$tmpdestdir"
|
||||
else
|
||||
git clone "$repourl" "$destdir" || die
|
||||
git clone "${repourl%.git}.git" "$destdir" || die
|
||||
fi
|
||||
else
|
||||
die "bug: mode non prévu"
|
||||
|
|
Loading…
Reference in New Issue