gloned: now recursive by default
This commit is contained in:
parent
8fe0c46186
commit
51a3404b5c
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ gloned() {
|
|||
# remove the url up to the last segment, and remove the .git from the end
|
||||
REPO_DIR="${2:-"$(echo "${1%.git}" | rev | cut -d '/' -f 1 | rev)"}"
|
||||
|
||||
git clone "$1" "$REPO_DIR" || return $?
|
||||
git clone --recursive "$1" "$REPO_DIR" || return $?
|
||||
if ! cd "$REPO_DIR";then
|
||||
echo 'Error: Could not `cd` into the repo'
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue