7 lines
214 B
Plaintext
7 lines
214 B
Plaintext
|
#!/bin/sh
|
||
|
# Clones from resolving the arguments and switches into the new directory
|
||
|
remote=$(gitremote "$@")
|
||
|
echo $remote
|
||
|
git clone $remote ${@:4} || return $?
|
||
|
cd "$(test $4 && echo $4 || basename ${remote%.git})"
|