From 145f9aff320942823065d74c405457a43614ca43 Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 22 Jan 2021 17:10:52 +0100 Subject: Ensure tagged version gives right repo URL --- app/lib/incommon.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/lib/incommon.rb b/app/lib/incommon.rb index e843683..e1e3887 100644 --- a/app/lib/incommon.rb +++ b/app/lib/incommon.rb @@ -8,10 +8,10 @@ module INCOMMON # Return a String representation of the current source code URL def repo_url(version) case version + when /^incommon-map (v.*)/ + query="h=#{$1}" when /^incommon-map @(.*)/ query="h=main&id=#{$1}" - when /^incommon-map (v.*)/ - query="h=$1" else query="h=HEAD" end -- cgit v1.2.3