【发布时间】:2014-03-14 00:19:52
【问题描述】:
在使用漂亮的gradle-git plugin(版本 0.6.5)时,我在签出分支时遇到了问题。
task checkoutMaster(type:GitCheckout){
setBranchName "master"
}
上面的任务导致org.eclipse.jgit.api.errors.RefNotFoundException可能是因为我当时不在任何分支上。
有人告诉我 Ref master can not be resolved 对我来说似乎很奇怪,考虑到我可以做一个 git checkout master 并且很好。
如何解决?
【问题讨论】: