diff options
author | hellekin <hellekin@cepheide.org> | 2021-01-22 16:35:05 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2021-01-22 16:35:05 +0100 |
commit | 7347675c642c97cea3cfec418563a42f7cac284d (patch) | |
tree | 76c2a4c7889cc22c4c02520d914fc502b78b9de0 /app/lib/incommon.rb | |
parent | 1cfcdac7958878dc7e3823a2185cdfeb648e3818 (diff) | |
download | incommon-map-7347675c642c97cea3cfec418563a42f7cac284d.tar.gz |
Distinguish branch and tagv0.1.2
Diffstat (limited to 'app/lib/incommon.rb')
-rw-r--r-- | app/lib/incommon.rb | 6 |
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 |