parent
a2f0a3650b
commit
c5d97c7e37
2 changed files with 5 additions and 3 deletions
|
@ -90,6 +90,8 @@ v 8.0.1
|
|||
v 8.0.0
|
||||
- Fix Markdown links not showing up in dashboard activity feed (Stan Hu)
|
||||
- Remove milestones from merge requests when milestones are deleted (Stan Hu)
|
||||
v 8.0.0 (unreleased)
|
||||
- Accept COPYING as licence file (Zeger-Jan van de Weg)
|
||||
- Fix HTML link that was improperly escaped in new user e-mail (Stan Hu)
|
||||
- Fix broken sort in merge request API (Stan Hu)
|
||||
- Bump rouge to 1.10.1 to remove warning noise and fix other syntax highlighting bugs (Stan Hu)
|
||||
|
|
|
@ -210,9 +210,9 @@ class Repository
|
|||
|
||||
def license
|
||||
cache.fetch(:license) do
|
||||
tree(:head).blobs.find do |file|
|
||||
file.name =~ /\Alicense/i
|
||||
end
|
||||
tree(:head).blobs.find_all do |file|
|
||||
file.name =~ /\A(copying|license)/i
|
||||
end.last # Prefer `LICENSE` as filename over `COPYING`
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue