rahedges / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

Unfriendly errors when manifest typos are made #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Brian Swetland <swetland@android.com> on Mon Feb 09 10:17:17 PST 
2009
Source: JIRA REPO-2

I had this in my local-manifest.xml:
 <remove-project name="kernel/common"/>
 <project path="kernel" name="kernel/msm" revision="refs/heads/android-msm-
htc-2.6.24"/>

Which was a typo (I meant ...25):
bulgaria% repo sync
remote: Counting objects: 5319, done.
remote: Compressing objects: 100% (1260/1260), done.
remote: Total 4985 (delta 4119), reused 4538 (delta 3701)
Receiving objects: 100% (4985/4985), 1.07 MiB | 994 KiB/s, done.
Resolving deltas: 100% (4119/4119), completed with 200 local objects.
From git://android-git/public/kernel/msm
 * [new branch]      android-msm-2.6.25 -> korg/android-msm-2.6.25
 * [new branch]      android-msm-2.6.27 -> korg/android-msm-2.6.27
 * [new branch]      android-msm-htc-2.6.25 -> korg/android-msm-htc-2.6.25
 * [new branch]      msm-2.6.25 -> korg/msm-2.6.25
Traceback (most recent call last):
 File "/scratch/open/.repo/repo/main.py", line 202, in <module>
   _Main(sys.argv[1:])
 File "/scratch/open/.repo/repo/main.py", line 186, in _Main
   repo._Run(argv)
 File "/scratch/open/.repo/repo/main.py", line 96, in _Run
   cmd.Execute(copts, cargs)
 File "/scratch/open/.repo/repo/subcmds/sync.py", line 106, in Execute
   if not project.Sync_LocalHalf():
 File "/scratch/open/.repo/repo/project.py", line 591, in Sync_LocalHalf
   lost = self._revlist(not_rev(rev), HEAD)
 File "/scratch/open/.repo/repo/project.py", line 1000, in _revlist
   return self.work_git.rev_list(*args)
 File "/scratch/open/.repo/repo/project.py", line 1147, in rev_list
   p.stderr))
error.GitError: kernel/msm rev-list (u'^refs/remotes/korg/android-msm-
htc-2.6.24', 'HEAD'): fatal: bad revision '^refs/remotes/korg/android-msm-
htc-2.6.24'

after fixing the manifest, I got:

bulgaria% repo sync
error: refs/remotes/m/master points nowhere!
info: [kernel/msm] Discarding 2 commits

which seems to have fixed things, but sounded like it had a problem.  later
repo syncs did not fail

Original issue reported on code.google.com by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:09

GoogleCodeExporter commented 9 years ago
Comment by Shawn Pearce <sop@google.com> on Mon Mar 02 12:56:59 PST 2009

Fixed by https://review.source.android.com/9049

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

GoogleCodeExporter commented 9 years ago
Update by Shawn Pearce <sop@google.com> on Mon Mar 02 12:56:59 PST 2009

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

GoogleCodeExporter commented 9 years ago
Update by Shawn Pearce <sop@google.com> on Mon Mar 02 12:58:00 PST 2009

Fixed in version 1.6.1.

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10