work around the bug Chryyz got
authorRudolf Polzer <divverent@alientrap.org>
Mon, 10 May 2010 06:39:45 +0000 (08:39 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 10 May 2010 06:39:45 +0000 (08:39 +0200)
all

diff --git a/all b/all
index 349dae1dab2ecd3ad87142488647151a02d65e30..a5c458c974c6fc1acc8695f6dd251331eff16c86 100755 (executable)
--- a/all
+++ b/all
@@ -134,7 +134,15 @@ netradiant                    |
 repos=`echo "$repos_urls" | grep . | cut -d '|' -f 1 | tr -d ' '`
 
 base=`git config remote.origin.url`
-base=${base%xonotic.git}
+case "$base" in
+       */xonotic.git)
+               base=${base%xonotic.git}
+               ;;
+       *)
+               echo "The main repo is not xonotic.git, what have you done?"
+               exit 1
+               ;;
+esac
 
 repourl()
 {