From: Stephen Rothwell Date: Wed, 13 Aug 2025 06:58:34 +0000 (+1000) Subject: common.sh: fetch the "tree" URL from the git remote config X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=0fc7c9bf4d99b3e36beba1885f6212ed7992e8dc;p=next-scripts common.sh: fetch the "tree" URL from the git remote config Hopefully I can remove the URL from the control file --- diff --git a/common.sh b/common.sh index e352901..667c0eb 100644 --- a/common.sh +++ b/common.sh @@ -102,7 +102,9 @@ get_type() get_url() { - get_control_field "$1" 4 + if ! git remote get_url "$1" 2>/dev/null; then + printf 'linux-next\n' + fi } get_remote_branch()