aboutsummaryrefslogtreecommitdiff
path: root/app/lib/incommon.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-01-22 16:35:05 +0100
committerhellekin <hellekin@cepheide.org>2021-01-22 16:35:05 +0100
commit7347675c642c97cea3cfec418563a42f7cac284d (patch)
tree76c2a4c7889cc22c4c02520d914fc502b78b9de0 /app/lib/incommon.rb
parent1cfcdac7958878dc7e3823a2185cdfeb648e3818 (diff)
downloadincommon-map-7347675c642c97cea3cfec418563a42f7cac284d.tar.gz
Distinguish branch and tagv0.1.2
Diffstat (limited to 'app/lib/incommon.rb')
-rw-r--r--app/lib/incommon.rb6
1 files changed, 4 insertions, 2 deletions
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