2021-06-18 15:51:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Clones from resolving the arguments and switches into the new directory
|
2022-01-12 11:44:28 +00:00
|
|
|
# ARGS see git-repo
|
2021-07-09 07:08:11 +00:00
|
|
|
set -e
|
2021-06-19 19:24:14 +00:00
|
|
|
remote=$(git-repo "$@")
|
|
|
|
echo "Cloning $remote"
|
2021-07-09 07:08:11 +00:00
|
|
|
git clone $remote ${@:4} --recurse-submodules
|
2021-11-06 23:22:45 +00:00
|
|
|
cd "$(test -n "$2" && echo "$2" || basename ${remote%.git})"
|