From: Nicolas Boisselier Date: Tue, 28 Nov 2017 21:41:54 +0000 (+0000) Subject: etc/profile.d/git.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=7839fc77176e15aa3dda0659b44ce5201a33aa94;p=nb.git etc/profile.d/git.sh --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index fd1274c3..c4a55a11 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -125,7 +125,9 @@ git_clone() { *) repo="$repo:" esac - git clone ${repo}${1%.git}.git $@ + local git=${1:?Usage: git_clone PROJECT_PATH} + shift + git clone ${repo}${git%.git}.git $@ } git_list() {