Skip to content

Commit cea95f2

Browse files
committed
Don't check for ".git" when parsing external urls
1 parent c138e0e commit cea95f2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

release.sh

+3-7
Original file line numberDiff line numberDiff line change
@@ -2060,17 +2060,13 @@ process_external() {
20602060
fi
20612061

20622062
if [[ $external_type == "git" ]]; then
2063-
# check for subpath in short form
2063+
# check for subpath in urls we know the structure of
20642064
if [[ -n $external_slug && $external_uri == *"$external_slug/"* ]]; then
2065-
# CF: `Libs/LibDoThings-1.0: https://repos.curseforge.com/wow/libdothings-1-0/LibDoThings-1.0`
2065+
# CF: https://repos.curseforge.com/wow/libdothings-1-0/LibDoThings-1.0
20662066
external_path=${external_uri#*/wow/$external_slug/}
20672067
external_uri=${external_uri%/$external_path*}
2068-
elif [[ $external_uri == *".git/"* ]]; then
2069-
# Anything using .git: `Libs/LibDoThings-1.0: https://github.com/nebularg/LibDoThings-1.0.git/LibDoThings-1.0`
2070-
external_path=${external_uri#*.git/}
2071-
external_uri=${external_uri%/$external_path*}
20722068
elif [[ $external_uri == "https://github.com/"*/*/* ]]; then
2073-
# Github without .git: `Libs/LibDoThings-1.0: https://github.com/nebularg/LibDoThings-1.0/LibDoThings-1.0`
2069+
# GitHub: https://github.com/nebularg/LibDoThings-1.0.git/LibDoThings-1.0
20742070
external_path=${external_uri#*.com/*/*/}
20752071
external_uri=${external_uri%/$external_path*}
20762072
fi

0 commit comments

Comments
 (0)