FIX routes bug
This commit is contained in:
parent
c85ad6444d
commit
9438bf5cd1
|
@ -7,7 +7,7 @@ class CompareController < ApplicationController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
base_ref = Addressable::URI.unescape(params[:base])
|
base_ref = Addressable::URI.unescape(params[:base])
|
||||||
@ref = head_ref = Addressable::URI.unescape(params[:head])
|
@ref = head_ref = Addressable::URI.unescape(params[:head]&.split('.json')[0])
|
||||||
@compare_result = Gitea::Repository::Commits::CompareService.call(@owner.login, @project.identifier, base_ref, head_ref)
|
@compare_result = Gitea::Repository::Commits::CompareService.call(@owner.login, @project.identifier, base_ref, head_ref)
|
||||||
|
|
||||||
# render json: @compare_result
|
# render json: @compare_result
|
||||||
|
|
Loading…
Reference in New Issue