Close GH-747: Do not use --depth=1 if the server does not support it, fixes #744.