2021-06-18 15:51:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Clones from resolving the arguments and switches into the new directory
|
2021-06-19 19:24:14 +00:00
|
|
|
remote=$(git-repo "$@")
|
|
|
|
echo "Cloning $remote"
|
|
|
|
git clone $remote ${@:4} --recurse-submodules || return $?
|
2021-06-18 15:51:57 +00:00
|
|
|
cd "$(test $4 && echo $4 || basename ${remote%.git})"
|