Openhabianpi first-boot failure

OK,
So as I am reading in this thread:

/usr/bin/git clone -b master https://github.com/openhab/openhabian.git /opt/openhabian &>/dev/null

the git clone command is failing but when I tried that with ssh, the clone part worked ok
that whole command (with sudo) works perfectly