diff options
author | Nico Sallembien <nsallembien@google.com> | 2010-04-26 11:17:29 -0700 |
---|---|---|
committer | Nico Sallembien <nsallembien@google.com> | 2010-04-26 11:19:07 -0700 |
commit | 5732e47ebb7a096e3afad49687098c4181c4b300 (patch) | |
tree | a4a3a2ff650b14471b5bb1337acf594ff872a097 | |
parent | f3fdf823cf9785e4ceca3e8416b719282d84b6d0 (diff) | |
download | git-repo-5732e47ebb7a096e3afad49687098c4181c4b300.tar.gz |
Strip refs/heads in the branch sent to the manifest server.
The manifest server doesn't want to have refs/heads passed to it, so
we need to strip that when the branch contains it.
Change-Id: I044f8a9629220e886fd5e02e3c1ac4b4bb6020ba
-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 |