Merge "Don't attempt to create "fully qualified names" for SHA1s"
diff --git a/project.py b/project.py
index 4427575..00e41ad 100644
--- a/project.py
+++ b/project.py
@@ -1402,7 +1402,7 @@
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)