azzurris / git-repo

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

deleting a branch causes sync to abort #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version:
Environment:
repo version v1.6.8.7-2-1-g6f0ebe9
      (from git+ssh://xxx.com:29418/xxx-android/tools/repo.git)
git version 1.6.0.6
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)]

What steps will reproduce the problem?
1. Create refs/heads/foo1
2. sync
3. Delete refs/heads/foo1
4. sync

What is the expected output? What do you see instead?
The missing branch is bypassed, possibly with a warning, and the rest of
the tree is synced.

Instead:

Fetching projects: 100% (3/3), done.
Syncing work tree: 63% (106/168) Traceback (most recent call last):
File "/projects/xxx/.repo/repo/main.py", line 235, in <module>
_Main(sys.argv[1:])
File "/projects/xxx/.repo/repo/main.py", line 217, in _Main
repo._Run(argv)
File "/projects/xxx/.repo/repo/main.py", line 123, in _Run
cmd.Execute(copts, cargs)
File "/projects/xxx/.repo/repo/subcmds/sync.py", line 238, in Execute
project.Sync_LocalHalf(syncbuf)
File "/projects/xxx/.repo/repo/project.py", line 642, in Sync_LocalHalf
revid = self.GetRevisionId(all)
File "/projects/xxx/.repo/repo/project.py", line 622, in GetRevisionId
rev = rem.ToLocal(self.revisionExpr)
File "/projects/xxx/.repo/repo/git_config.py", line 519, in ToLocal
raise GitError('remote %s does not have %s' % (self.name, rev))
error.GitError: remote FOO-mirror does not have refs/heads/a50

Please provide any additional information below.

Original issue reported on code.google.com by m.bn...@gmail.com on 9 Nov 2009 at 3:53