X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fall%2Fgit.subr;h=b14a8b6f1acd8e0f67443f7a211fcdf3c80fa3af;hp=33054119e013680b08db65b02719556a3058f651;hb=8d7446d8974d7bcb40a5ea1c603d8f3816f941b9;hpb=022da22429cb6df5ba493050179edae0a8ff469e diff --git a/misc/tools/all/git.subr b/misc/tools/all/git.subr index 33054119..b14a8b6f 100644 --- a/misc/tools/all/git.subr +++ b/misc/tools/all/git.subr @@ -19,6 +19,10 @@ initrepo() base= pushbase= allrepos initrepo_ "`git config remote.origin.url`" "`git config remote.origin.pushurl`" + if [ -z "$base" ]; then + msg "The main repo is not xonotic.git, what have you done?" + exit 1 + fi msg "Found main repo = $base" if [ -n "$pushbase" ]; then msg "Found push repo = $pushbase"