From f56e3c1da289fff5ef2bef7f148d05b80b2be8e0 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 21 Nov 2010 16:34:12 +0100 Subject: [PATCH] if we fetched via ssh://, switch to git:// for fetching and keep using ssh:// for pushing --- all | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/all b/all index 051a5e8e..e4b60dfb 100755 --- 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/xonotic.git + ;; + esac newbase=`$ECHO "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,:// .git.xonotic.org/,"` case "$newbase" in *\ *) -- 2.39.2