From 7839fc77176e15aa3dda0659b44ce5201a33aa94 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 28 Nov 2017 21:41:54 +0000 Subject: [PATCH] etc/profile.d/git.sh --- etc/profile.d/git.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- 2.47.3