clone.sh: If triggered by Gerrit plugin, use its variables

So that the script works as expected with personal fork repos, etc.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I8fcfa09bac3bb663a534f4493cf8eef39c1b019c
1 file changed