diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/builddetailspage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builddetailspage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py index 55a851feeb..50073c1fe1 100755 --- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py | |||
@@ -99,6 +99,8 @@ class BuildConfigurationTreeView(gtk.TreeView): | |||
99 | import os, os.path | 99 | import os, os.path |
100 | if os.path.exists(path): | 100 | if os.path.exists(path): |
101 | branch = bb.process.run('cd %s; git branch | grep "^* " | tr -d "* "' % path)[0] | 101 | branch = bb.process.run('cd %s; git branch | grep "^* " | tr -d "* "' % path)[0] |
102 | if branch.startswith("fatal:"): | ||
103 | branch = "(unknown)" | ||
102 | if branch: | 104 | if branch: |
103 | branch = branch.strip('\n') | 105 | branch = branch.strip('\n') |
104 | vars.append(self.set_vars("Branch:", branch)) | 106 | vars.append(self.set_vars("Branch:", branch)) |