diff options
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 5c14727a70..630e4a0003 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1516,12 +1516,12 @@ class Layer_Version(models.Model): | |||
1516 | return self._handle_url_path(self.layer.vcs_web_tree_base_url, '') | 1516 | return self._handle_url_path(self.layer.vcs_web_tree_base_url, '') |
1517 | 1517 | ||
1518 | def get_vcs_reference(self): | 1518 | def get_vcs_reference(self): |
1519 | if self.commit is not None and len(self.commit) > 0: | ||
1520 | return self.commit | ||
1519 | if self.branch is not None and len(self.branch) > 0: | 1521 | if self.branch is not None and len(self.branch) > 0: |
1520 | return self.branch | 1522 | return self.branch |
1521 | if self.release is not None: | 1523 | if self.release is not None: |
1522 | return self.release.name | 1524 | return self.release.name |
1523 | if self.commit is not None and len(self.commit) > 0: | ||
1524 | return self.commit | ||
1525 | return 'N/A' | 1525 | return 'N/A' |
1526 | 1526 | ||
1527 | def get_detailspage_url(self, project_id=None): | 1527 | def get_detailspage_url(self, project_id=None): |