以下代码:
final git = Grgit.open("${oldVersionRoot}/.git")
git.fetch(refSpecs: ["release/${oldVersion}"])
发射:
Caused by: org.eclipse.jgit.errors.TransportException: Remote does not have release/2.1747.0 available for fetch.
让fetch
工作的正确咒语是什么?
答案 0 :(得分:1)
来自https://github.com/ajoberstar/gradle-git/issues/166:
git.fetch(refSpecs: ["refs/remotes/origin/release/${oldVersion}"])