diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/sync.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 02dd82df..67213d3a 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -24,6 +24,7 @@ import time | |||
24 | import xmlrpclib | 24 | import xmlrpclib |
25 | 25 | ||
26 | from git_command import GIT | 26 | from git_command import GIT |
27 | from git_refs import R_HEADS | ||
27 | from project import HEAD | 28 | from project import HEAD |
28 | from project import Project | 29 | from project import Project |
29 | from project import RemoteSpec | 30 | from project import RemoteSpec |
@@ -205,6 +206,8 @@ uncommitted changes are present' % project.relpath | |||
205 | p = self.manifest.manifestProject | 206 | p = self.manifest.manifestProject |
206 | b = p.GetBranch(p.CurrentBranch) | 207 | b = p.GetBranch(p.CurrentBranch) |
207 | branch = b.merge | 208 | branch = b.merge |
209 | if branch.startswith(R_HEADS): | ||
210 | branch = branch[len(R_HEADS):] | ||
208 | 211 | ||
209 | env = dict(os.environ) | 212 | env = dict(os.environ) |
210 | if (env.has_key('TARGET_PRODUCT') and | 213 | if (env.has_key('TARGET_PRODUCT') and |