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