Browse Source

change

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
74c3b9dfb9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/repositories_controller.rb

+ 2
- 2
app/controllers/repositories_controller.rb View File

@@ -132,8 +132,8 @@ class RepositoriesController < ApplicationController
@tags_count = Gitea::Repository::Tags::ListService.new(current_user&.gitea_token, @project.owner.login, @project.identifier).call&.size
latest_commit = get_latest_commit
@latest_commit = latest_commit[:body][0]
@commits_count = latest_commit[:total_count]
@latest_commit = latest_commit[:body][0] if latest_commit.present?
@commits_count = latest_commit[:total_count] if latest_commit.present?
end
def get_ref


Loading…
Cancel
Save