From 652cd372826fb10205cb47cec26c1ebeff8ba168 Mon Sep 17 00:00:00 2001 From: Nathan Stilwell Date: Tue, 10 Dec 2013 10:53:20 -0500 Subject: [PATCH] a more robust gerrit clone --- plugins/gerrit/gerrit.plugin.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/gerrit/gerrit.plugin.zsh b/plugins/gerrit/gerrit.plugin.zsh index be49be371..5e7b5dcaa 100644 --- a/plugins/gerrit/gerrit.plugin.zsh +++ b/plugins/gerrit/gerrit.plugin.zsh @@ -31,8 +31,11 @@ function gerrit_clone () { if [ -z $1 ]; then echo "$yellow Please supply the name of a repo to clone. $stop" else - git clone --recursive ssh://gerrit_host/$1 $2 - #echo "git clone ssh://gerrit_host/$1" + if [[ -n $(which gg-gerrit-clone) ]]; then + gg-gerrit-clone $1 + else + git clone --recursive ssh://gerrit_host/$1 + fi fi }