mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
git-ref2info: fix https Makefile URL for gitlab.com (eg, rk35xx-legacy) (#4848)
This commit is contained in:
@@ -62,11 +62,12 @@ function memoized_git_ref_to_info() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"https://gitlab.com/"*)
|
"https://gitlab.com/"*)
|
||||||
# parse org/repo from https://gitlab.com/org/repoß
|
# GitLab is more complex than GitHub, there can be more levels.
|
||||||
declare org_and_repo=""
|
# This code is incomplete... but it works for now.
|
||||||
org_and_repo="$(echo "${git_source}" | cut -d/ -f4-5)"
|
# Example: input: https://gitlab.com/rk3588_linux/rk/kernel.git
|
||||||
org_and_repo="${org_and_repo%.git}" # remove .git if present
|
# output: https://gitlab.com/rk3588_linux/rk/kernel/-/raw/linux-5.10/Makefile
|
||||||
url="https://gitlab.com/${org_and_repo}/-/raw/${sha1}/Makefile"
|
declare gitlab_path="${git_source%.git}" # remove .git
|
||||||
|
url="${gitlab_path}/-/raw/${sha1}/Makefile"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"https://source.codeaurora.org/external/imx/linux-imx")
|
"https://source.codeaurora.org/external/imx/linux-imx")
|
||||||
|
|||||||
Reference in New Issue
Block a user