以下代码:
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
上班的正确咒语是什么?
以下代码:
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
上班的正确咒语是什么?
来自https://github.com/ajoberstar/gradle-git/issues/166:
git.fetch(refSpecs: ["refs/remotes/origin/release/${oldVersion}"])