s'assurer que le nom du dépôt ne se termine pas par .git

This commit is contained in:
Jephte CLAIN 2014-11-11 15:52:16 +04:00
parent 9047d01447
commit d33bc3c0fd
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ elif array_contains GITANNEX_CMDS "$CMD"; then
esac esac
elif [ "$CMD" == crone ]; then elif [ "$CMD" == crone ]; then
repourl="$1" repourl="${1%.git}"
[ -n "$repourl" ] || die "Vous devez spécifier l'url du dépôt git" [ -n "$repourl" ] || die "Vous devez spécifier l'url du dépôt git"
splitfsep "$repourl" : userhost path splitfsep "$repourl" : userhost path
splituserhost "$userhost" user host splituserhost "$userhost" user host