aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-01-22 17:10:52 +0100
committerhellekin <hellekin@cepheide.org>2021-01-22 17:10:52 +0100
commit145f9aff320942823065d74c405457a43614ca43 (patch)
treed5248e2f6229f3ba5571bbb5e9f056f8aedce1bc
parentd463c79fdb73de154922ac560b6bccf92f5c9058 (diff)
downloadincommon-map-0.1.4.tar.gz
Ensure tagged version gives right repo URLv0.1.4
-rw-r--r--app/lib/incommon.rb4
1 files changed, 2 insertions, 2 deletions
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