在mac OS中调用git active命令报不支持协议

在iOS自动打包的shell脚本中获取git库的代码
git archive --remote $git_repo --format tar $build_branch -o $build_source/$build_branch.tar
这句报错,错误信息:
fatal: Operation not supported by protocol.

参考链接

望采纳