diff --git a/lib/autoproj/git_server_configuration.rb b/lib/autoproj/git_server_configuration.rb index 55b7d64d..3f1c467f 100644 --- a/lib/autoproj/git_server_configuration.rb +++ b/lib/autoproj/git_server_configuration.rb @@ -103,6 +103,7 @@ def self.git_server_configuration(name, base_url, Autoproj.add_source_handler name.downcase do |url, private: false, **vcs_options| if add_suffix url += ".git" if url !~ /\.git$/ + end url = "/#{url}" if url !~ /^\// unless GIT_SERVER_CONFIG_VARS.all? { |v| config.has_value_for?("#{name}#{v}") }