For testing I had ap-fetch-version-old returning a file:// URL to a local repo.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
local remoteurl=$2
local remotetag=$3
local localtag=$4
- local realurl="`getconfig GitCacheProxy`$remoteurl"
+ case $remoteurl in
+ git://*|http://*|https://*)
+ local realurl="`getconfig GitCacheProxy`$remoteurl" ;;
+ *)
+ local realurl="$remoteurl" ;;
+ esac
if ! test -d $repos/$treename; then
git clone --bare $realurl $repos/$treename >&2
fi