summaryrefslogtreecommitdiffstats
path: root/git_refs.py
diff options
context:
space:
mode:
authorZac Livingston <zacl@codeaurora.org>2017-06-13 08:29:04 -0600
committerDavid Pursehouse <dpursehouse@collab.net>2017-08-25 09:10:29 +0900
commit9ead97bb51f5b1ad1d0a45e0c5442f15e1e38fd7 (patch)
tree4edd8cc4d061a3c8971fd6d55a547320120ad10b /git_refs.py
parente43322625a423c2dc7aa8b0648c172ccbe7aefa7 (diff)
downloadgit-repo-9ead97bb51f5b1ad1d0a45e0c5442f15e1e38fd7.tar.gz
When starting a branch, do not use a tag or change value for branch.merge
When starting a branch, branch.merge is set to project revision unless the revision is a SHA1. In that case, branch.merge is set to dest_branch if defined or manifest default revision otherwise. This special handling allows repo upload to work when the project revision is a SHA1. Extend the special handling to also happen when the project revision is a tag value or a change value so that repo upload will work in those case as well. Change-Id: Iff81ece40e770cd02535e80dcb023564d42dcf47
Diffstat (limited to 'git_refs.py')
-rw-r--r--git_refs.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/git_refs.py b/git_refs.py
index 3c266061..58c838a6 100644
--- a/git_refs.py
+++ b/git_refs.py
@@ -16,11 +16,12 @@
16import os 16import os
17from trace import Trace 17from trace import Trace
18 18
19HEAD = 'HEAD' 19HEAD = 'HEAD'
20R_HEADS = 'refs/heads/' 20R_CHANGES = 'refs/changes/'
21R_TAGS = 'refs/tags/' 21R_HEADS = 'refs/heads/'
22R_PUB = 'refs/published/' 22R_TAGS = 'refs/tags/'
23R_M = 'refs/remotes/m/' 23R_PUB = 'refs/published/'
24R_M = 'refs/remotes/m/'
24 25
25 26
26class GitRefs(object): 27class GitRefs(object):