diff options
-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 |