在大型机 zdnt 从节点上使用 https 进行 Git 克隆
Posted
技术标签:
【中文标题】在大型机 zdnt 从节点上使用 https 进行 Git 克隆【英文标题】:Git clone using https on mainframe zdnt slave node 【发布时间】:2020-09-22 19:23:35 【问题描述】:当我在 Jenkins 的大型机 zdnt 从节点上执行 https git clone 时 - 我收到如下错误
> /hfs/rocket/bin/git fetch --tags --progress -- https://XXX/Rahul_Udaykumar/ibm-dbb-mort.git +refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "/hfs/rocket/bin/git fetch --tags --progress -- https://XXX/Rahul_Udaykumar/ibm-dbb-mort.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: fatal: Unable to find remote helper for 'https'
stderr:
【问题讨论】:
你的 ssh git clone 工作正常吗? 【参考方案1】:Rocket zOpen Source Zone Git for zOS 2.26.2 - Release Notes.pdf 它概述了几个限制。下载是免费的,但您必须注册。我已经包括了以下限制。其中之一是 z/OS 上的 Git 只能在客户端模式下运行。
Restrictions
Some files used by Git must be encoded as ISO8859-1 or UTF-8. These include:
Git attribute files, whether in .git/info/attributes or .gitattributes
.gitignore files
The only remote protocols supported are ssh and https.
Only client mode is supported; in other words, Git for z/OS can clone from,
and push to, remote repositories via ssh or https, but
cannot be the target of clone and push from other clients.
In heterogeneous deployments (e.g. both USS and Windows Git clients), the
limitations of your zos-working-tree-encoding attribute
choices must be respected across all Git clients. For example, given two Git
client clones of a text file - one on USS using IBM-1047
encoding and one on Windows using UTF-8 encoding - you must not add an IBM-930
character to the same file on your Windows system.
The Git interface to Subversion (git-svn) is not supported.
【讨论】:
以上是关于在大型机 zdnt 从节点上使用 https 进行 Git 克隆的主要内容,如果未能解决你的问题,请参考以下文章