diff options
Diffstat (limited to 'subcmds/info.py')
-rw-r--r-- | subcmds/info.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subcmds/info.py b/subcmds/info.py index f637600e..ab230ddd 100644 --- a/subcmds/info.py +++ b/subcmds/info.py | |||
@@ -97,7 +97,9 @@ class Info(PagedCommand): | |||
97 | self.headtext(self.manifest.default.revisionExpr) | 97 | self.headtext(self.manifest.default.revisionExpr) |
98 | self.out.nl() | 98 | self.out.nl() |
99 | self.heading("Manifest merge branch: ") | 99 | self.heading("Manifest merge branch: ") |
100 | self.headtext(mergeBranch) | 100 | # The manifest might not have a merge branch if it isn't in a git repo, |
101 | # e.g. if `repo init --standalone-manifest` is used. | ||
102 | self.headtext(mergeBranch or "") | ||
101 | self.out.nl() | 103 | self.out.nl() |
102 | self.heading("Manifest groups: ") | 104 | self.heading("Manifest groups: ") |
103 | self.headtext(manifestGroups) | 105 | self.headtext(manifestGroups) |