lib/autoproj/gitorious.rb in autoproj-1.7.7 vs lib/autoproj/gitorious.rb in autoproj-1.7.8
- old
+ new
@@ -50,10 +50,10 @@
# If running on a recent enough autobuild version, register a fallback to
# use http when git fails
if Autobuild::Importer.respond_to?(:fallback) && options[:fallback_to_http]
Autobuild::Importer.fallback do |package, importer|
- root_rx = /^(?:http:\/\/git\.|git:\/\/|git@)#{Regexp.quote(base_url)}/
+ root_rx = /^(?:http:\/\/git\.|git:\/\/|git@)#{Regexp.quote(base_url)}:?/
if importer.kind_of?(Autobuild::Git) && importer.repository =~ root_rx && importer.repository !~ /^http/
Autoproj.warn "import from #{importer.repository} failed, falling back to using http for all packages on #{base_url}"
Autobuild::Package.each do |pkg_name, pkg|
if pkg.importer.kind_of?(Autobuild::Git) && pkg.importer.repository =~ root_rx
pkg.importer.repository.gsub!(root_rx, "http://git.#{base_url}")