diff options
author | Anatol Pomazau <anatol@google.com> | 2012-03-20 13:45:00 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2012-03-20 14:11:56 -0700 |
commit | cd7c5deca0b0594bd8addd5a0fe18b962d2679e9 (patch) | |
tree | ec56d17e669c94bd297d8080f4f5bbb226a4841c | |
parent | e02ac0af2e69f2c149de942d639bf305e5ae391a (diff) | |
download | git-repo-cd7c5deca0b0594bd8addd5a0fe18b962d2679e9.tar.gz |
Do not change branch.foo.merge in case of manifest sync
In case of manifest/smart sync repo changes ".merge" config
option from branch to SHA. Doing 'repo upload' fails as
repo tries to upload to a remote branch that looks like SHA
(e.g. refs/for/23423423423423423423423)
Do not update the .merge in case if revision is SHA.
Change-Id: I9139708fa17f21eec5a7e23c3255333626bf529e
-rw-r--r-- | project.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1102,7 +1102,9 @@ class Project(object): | |||
1102 | len(local_changes) - cnt_mine) | 1102 | len(local_changes) - cnt_mine) |
1103 | 1103 | ||
1104 | branch.remote = self.GetRemote(self.remote.name) | 1104 | branch.remote = self.GetRemote(self.remote.name) |
1105 | branch.merge = self.revisionExpr | 1105 | if not ID_RE.match(self.revisionExpr): |
1106 | # in case of manifest sync the revisionExpr might be a SHA1 | ||
1107 | branch.merge = self.revisionExpr | ||
1106 | branch.Save() | 1108 | branch.Save() |
1107 | 1109 | ||
1108 | if cnt_mine > 0 and self.rebase: | 1110 | if cnt_mine > 0 and self.rebase: |