]> git.ozlabs.org Git - next-scripts/commitdiff
common.sh: fetch the "tree" URL from the git remote config
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 13 Aug 2025 06:58:34 +0000 (16:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 13 Aug 2025 06:58:34 +0000 (16:58 +1000)
Hopefully I can remove the URL from the control file

common.sh

index e35290157feb32e41c56e93885db67c7bca325f7..667c0ebaffde6789bae34b7387599674770be1a0 100644 (file)
--- 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()