]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
./all update -ph sets up pushing via http (experimental; ask me to generate a passwor...
authorRudolf Polzer <divverent@alientrap.org>
Fri, 14 Jan 2011 20:04:38 +0000 (21:04 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 14 Jan 2011 20:04:38 +0000 (21:04 +0100)
all

diff --git a/all b/all
index 7beec5b4e47f0d214c8d4fd226e23cf7314da2ff..934169828d4e594fa77d7852e1a95bf27c1c1569 100755 (executable)
--- a/all
+++ b/all
@@ -498,13 +498,16 @@ case "$cmd" in
                                allow_pull=false
                        elif [ x"$1" = x"-p" ]; then
                                fix_config=true
-                               if [ x"$base" != x"ssh://xonotic@git.xonotic.org/" ]; then
-                                       pushbase=ssh://xonotic@git.xonotic.org/
-                               fi
+                               pushbase=ssh://xonotic@git.xonotic.org/
+                       elif [ x"$1" = x"-ps" ]; then
+                               fix_config=true
+                               pushbase=ssh://xonotic@git.xonotic.org/
+                       elif [ x"$1" = x"-ph" ]; then
+                               fix_config=true
+                               pushbase=http://git.xonotic.org/login/
                        elif [ x"$1" = x"-s" ]; then
                                fix_config=true
                                base=ssh://xonotic@git.xonotic.org/
-                               pushbase=
                        elif [ x"$1" = x"-g" ]; then
                                fix_config=true
                                base=git://git.xonotic.org/xonotic/
@@ -549,7 +552,7 @@ case "$cmd" in
                        best)
                                # if we fetched via ssh://, switch to git:// for fetching and keep using ssh:// for pushing
                                case "$base" in
-                                       ssh://*)
+                                       ssh://*|*/login/*)
                                                pushbase=$base
                                                base=git://git.xonotic.org/xonotic/
                                                ;;