Commit 27d2b355 authored by Jeroen Bobbeldijk's avatar Jeroen Bobbeldijk

Add changelog, change code to guard clause

parent 08c3936b
...@@ -35,6 +35,9 @@ v 8.7.0 (unreleased) ...@@ -35,6 +35,9 @@ v 8.7.0 (unreleased)
- ClosingIssueExtractor regex now also works with colons. e.g. "Fixes: #1234" !3591 - ClosingIssueExtractor regex now also works with colons. e.g. "Fixes: #1234" !3591
- Update number of Todos in the sidebar when it's marked as "Done". !3600 - Update number of Todos in the sidebar when it's marked as "Done". !3600
v 8.6.6
- Fix error on language detection when repository has no HEAD (e.g., master branch). !3654
v 8.6.5 v 8.6.5
- Fix importing from GitHub Enterprise. !3529 - Fix importing from GitHub Enterprise. !3529
- Perform the language detection after updating merge requests in `GitPushService`, leading to faster visual feedback for the end-user. !3533 - Perform the language detection after updating merge requests in `GitPushService`, leading to faster visual feedback for the end-user. !3533
......
...@@ -896,9 +896,9 @@ class Repository ...@@ -896,9 +896,9 @@ class Repository
end end
def main_language def main_language
unless empty? or rugged.head_unborn? return nil if empty? || rugged.head_unborn?
Linguist::Repository.new(rugged, rugged.head.target_id).language
end Linguist::Repository.new(rugged, rugged.head.target_id).language
end end
def avatar def avatar
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment