summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/sync.py3
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
24import xmlrpclib 24import xmlrpclib
25 25
26from git_command import GIT 26from git_command import GIT
27from git_refs import R_HEADS
27from project import HEAD 28from project import HEAD
28from project import Project 29from project import Project
29from project import RemoteSpec 30from 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