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
Léo-Paul Géneau
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
Hide 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)
...
@@ -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
...
...
app/models/repository.rb
View file @
27d2b355
...
@@ -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
...
...
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