From d203d79c8b389cfc55a377acd0de7a8f3db2f7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Tue, 20 Apr 2021 16:51:26 +0800 Subject: [PATCH] fix error --- app/controllers/ruling_templates_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ruling_templates_controller.rb b/app/controllers/ruling_templates_controller.rb index 6d2446d..8b10826 100644 --- a/app/controllers/ruling_templates_controller.rb +++ b/app/controllers/ruling_templates_controller.rb @@ -30,7 +30,7 @@ class RulingTemplatesController < ApplicationController if r_template.git_url.blank? render :json => {url: r_template.template_zip.url,type: 'zip'}.to_json else - render :json => {url: r_template.git_url,branch: r_template.git_branch,type: 'git'}.to_json + render :json => {url: r_template.git_url+'.git',branch: r_template.git_branch,type: 'git'}.to_json end end end