local repo url
local remote=$(git config remote.origin.url)
+
+ if [[ -z ${remote} ]] ; then
+ # Maybe the repo doesn't use "origin". Try harder.
+ local branch=$(git rev-parse --abbrev-ref HEAD)
+ remote=$(git config "branch.${branch}.remote")
+ if [[ -n ${remote} ]] ; then
+ remote=$(git config "remote.${remote}.url")
+ fi
+ fi
+
case ${remote} in
*://uclibc.org/*|*://git.uclibc.org/*|\
*://busybox.net/*|*://git.busybox.net/*|\