From 382582728ea779aa4cc5e8a7eba2b7b2167efabc Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin Date: Thu, 30 Apr 2015 14:50:33 +0200 Subject: [PATCH] Don't attempt to create "fully qualified names" for SHA1s Doing so breaks "repo init -b ". Change-Id: Ic071a1b099a9125db22ea446d7e92e7854d69b37 --- project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.py b/project.py index 6217aec8..61fddacc 100644 --- a/project.py +++ b/project.py @@ -1396,7 +1396,7 @@ class Project(object): branch = self.GetBranch(name) branch.remote = self.GetRemote(self.remote.name) branch.merge = self.revisionExpr - if not branch.merge.startswith('refs/'): + if not branch.merge.startswith('refs/') and not ID_RE.match(self.revisionExpr): branch.merge = R_HEADS + self.revisionExpr revid = self.GetRevisionId(all_refs)