]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
fix
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 051a5e8e5ace91e81422c302d0c33fdcf54910a5..1b29784dc4e9e5d8f22276ddf534a92b5ac516e9 100755 (executable)
--- a/all
+++ b/all
@@ -546,6 +546,13 @@ case "$cmd" in
                esac
                case "$location" in
                        best)
+                               # if we fetched via ssh://, switch to git:// for fetching and keep using ssh:// for pushing
+                               case "$base" in
+                                       ssh://*)
+                                               pushbase=$base
+                                               base=git://git.xonotic.org/xonotic/
+                                               ;;
+                               esac
                                newbase=`$ECHO "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,:// .git.xonotic.org/,"`
                                case "$newbase" in
                                        *\ *)