Bernie Innocenti wrote:
> [cc += osl]
> 
> Marco Pesenti Gritti wrote:
>> the public and http clone urls are *not* working. For example try:
>>
>> http://git.sugarlabs.org/projects/sugar/repos/mainline
>>
>> This is a blocker to make those official repos, obviously.
> 
> I had a quick look myself: it seems gitorious contains the assumption
> that the webapp runs from "foobar.org", and git trees are at
> "git.foobar.org", which is how the main gitorious site is configured,
>  This also explains why we see urls like git.git.sugarlabs.org.
> 
> We can't do that, but we could do source.sugarlabs.org or
> src.sugarlabs.org for the application.
> 
> Alternatively, we could change the code to look for the repositories
> in http://git.sugarlabs.org/git/ .

As we suspected, it was really hardcoded.

>From app/views/repositories/_infobox.html.erb:
  def http_clone_url
    "http://git.#{GitoriousConfig['gitorious_host']}/#{gitdir}"
  end

I changed it to point at http://sugarlabs.org/git/<dir> instead,
and I'm trying to figure out to dispatch it to the http server daemon
(script/gitorious).

-- 
   // Bernie Innocenti - http://www.codewiz.org/
 \X/  Sugar Labs       - http://www.sugarlabs.org/
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to