From: Rudolf Polzer Date: Sun, 21 Nov 2010 15:34:12 +0000 (+0100) Subject: if we fetched via ssh://, switch to git:// for fetching and keep using ssh:// for... X-Git-Tag: xonotic-v0.1.0preview~36^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f56e3c1da289fff5ef2bef7f148d05b80b2be8e0;p=xonotic%2Fxonotic.git if we fetched via ssh://, switch to git:// for fetching and keep using ssh:// for pushing --- 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 *\ *)