]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/git.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 28 Nov 2017 21:41:54 +0000 (21:41 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 28 Nov 2017 21:41:54 +0000 (21:41 +0000)
etc/profile.d/git.sh

index fd1274c3d1f70327cff253c79ed263ea8d8c4048..c4a55a11f5cf18f1da5637dfff46c6208ca3a6b5 100644 (file)
@@ -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() {