From 7347675c642c97cea3cfec418563a42f7cac284d Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 22 Jan 2021 16:35:05 +0100 Subject: Distinguish branch and tag --- app/lib/incommon.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/lib/incommon.rb b/app/lib/incommon.rb index 78ba894..1053098 100644 --- a/app/lib/incommon.rb +++ b/app/lib/incommon.rb @@ -6,8 +6,10 @@ module INCOMMON module_function def repo_url(version) case version - when /^incommon-map (.*)@(.*)/ - query="h=#{$1}&id=#{$2}" + when /^incommon-map @(.*)/ + query="h=main&id=#{$1}" + when /^incommon-map (v.*)/ + query="h=$1" else query="h=HEAD" end -- cgit v1.2.3