Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
27d2b355
Commit
27d2b355
authored
Apr 11, 2016
by
Jeroen Bobbeldijk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog, change code to guard clause
parent
08c3936b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGELOG
CHANGELOG
+3
-0
app/models/repository.rb
app/models/repository.rb
+3
-3
No files found.
CHANGELOG
View file @
27d2b355
...
...
@@ -35,6 +35,9 @@ v 8.7.0 (unreleased)
- 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
v 8.6.6
- Fix error on language detection when repository has no HEAD (e.g., master branch). !3654
v 8.6.5
- 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
...
...
app/models/repository.rb
View file @
27d2b355
...
...
@@ -896,10 +896,10 @@ class Repository
end
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
end
def
avatar
return
nil
unless
exists?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment