commit | 57f43f49448a9eb255eb2452e902d3f26e77aca3 | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Wed Jul 29 02:11:55 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Jul 29 02:11:55 2015 +0000 |
tree | cb7b72228ea340463e3471c59b59e8b570112006 | |
parent | 4e16c249817aa3b14a5d1ce767687f1d82c41249 [diff] | |
parent | 17af578d72e89016fa94d4dc97d58ceaa4a7c531 [diff] |
Merge "Prevent repo info from crashing when default element doesn't exist."
diff --git a/subcmds/info.py b/subcmds/info.py index d42860a..ed196e9 100644 --- a/subcmds/info.py +++ b/subcmds/info.py
@@ -59,7 +59,8 @@ or 'all,-notdefault') self.heading("Manifest branch: ") - self.headtext(self.manifest.default.revisionExpr) + if self.manifest.default.revisionExpr: + self.headtext(self.manifest.default.revisionExpr) self.out.nl() self.heading("Manifest merge branch: ") self.headtext(mergeBranch)