blob: e8436835142efe821823b71a06a01ac07e9849b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
module INCOMMON
module_function
# Return a String representation of the current source code URL
def repo_url(version)
case version
when /^incommon-map @(.*)/
query="h=main&id=#{$1}"
when /^incommon-map (v.*)/
query="h=$1"
else
query="h=HEAD"
end
URI.parse("https://code.cepheide.org/incommon-map.git/tree/?#{query}").to_s
end
end
|