mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
a more robust gerrit clone
This commit is contained in:
parent
db68761365
commit
652cd37282
1 changed files with 5 additions and 2 deletions
|
|
@ -31,8 +31,11 @@ function gerrit_clone () {
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo "$yellow Please supply the name of a repo to clone. $stop"
|
echo "$yellow Please supply the name of a repo to clone. $stop"
|
||||||
else
|
else
|
||||||
git clone --recursive ssh://gerrit_host/$1 $2
|
if [[ -n $(which gg-gerrit-clone) ]]; then
|
||||||
#echo "git clone ssh://gerrit_host/$1"
|
gg-gerrit-clone $1
|
||||||
|
else
|
||||||
|
git clone --recursive ssh://gerrit_host/$1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue