a more robust gerrit clone

This commit is contained in:
Nathan Stilwell 2013-12-10 10:53:20 -05:00
commit 652cd37282

View file

@ -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
} }