repo init报错error.GitError: manifests rev-list (u'^2736dfd46e8a30cf59a9cd6e93d9e56e87021f2a', 'HEAD',
1>看下error log:[7.0-msm8953-Build-Dev-phoenix] $ repo init -u ssh://172.29.0.92/manifest -b rel/8953/zd552kl/7.1.1-11.40.208Traceback (most recent call last):File "/home/builder5/jenkins_slave/wo
·
1>看下error log:
[7.0-msm8953-Build-Dev-phoenix] $ repo init -u ssh://172.29.0.92/manifest -b rel/8953/zd552kl/7.1.1-11.40.208
Traceback (most recent call last):
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/main.py", line 418, in <module>
_Main(sys.argv[1:])
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/main.py", line 394, in _Main
result = repo._Run(argv) or 0
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/main.py", line 142, in _Run
result = cmd.Execute(copts, cargs)
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/subcmds/init.py", line 369, in Execute
self._SyncManifest(opt)
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/subcmds/init.py", line 222, in _SyncManifest
m.MetaBranchSwitch(opt.manifest_branch)
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/project.py", line 2430, in MetaBranchSwitch
self.Sync_LocalHalf(syncbuf)
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/project.py", line 1106, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/project.py", line 2080, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/builder5/jenkins_slave/workspace/7.0-msm8953-Build-Dev-phoenix/.repo/repo/project.py", line 2233, in rev_list
p.stderr))
error.GitError: manifests rev-list (u'^2736dfd46e8a30cf59a9cd6e93d9e56e87021f2a', 'HEAD', '--'): fatal: bad revision 'HEAD'
java.io.IOException: Could not checkout
at hudson.plugins.repo.RepoScm.checkout(RepoScm.java:701)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
at hudson.model.Run.execute(Run.java:1737)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:419)
Finished: FAILURE
error.GitError: manifests rev-list (u'^2736dfd46e8a30cf59a9cd6e93d9e56e87021f2a', 'HEAD', '--'): fatal: bad revision 'HEAD'
commit2736dfd46e8a30cf59a9cd6e93d9e56e87021f2a,就是HEAD应指向的commit,而现在出错找不到了
3>cd .repo/manifests
4>git branch -av,找到当前分支对应的远程分支
jessie@jessie:~/androidcode/temp/.repo/manifests$ git branch -av | grep 208
remotes/m/rel/8953/zd552kl/7.1.1-11.40.208 -> origin/rel/8953/zd552kl/7.1.1-11.40.208
remotes/origin/dev/ze550kl/asus/5.0.0-20150208 11a37fe set dev/ze550kl/asus/5.0.0-20150208
remotes/origin/rel/8953/zd552kl/7.1.1-11.40.208 2736dfd Remove opencv3 from the manifest
5>把HEAD切回原来指向的远程分支
git reset --hard remotes/origin/rel/8953/zd552kl/7.1.1-11.40.208
更多推荐
已为社区贡献2条内容
所有评论(0)