* [cgit] a + in the path
[not found] <AANLkTin8j6g4vZRe6ZGndSj9DNz04HO-UB8wK2sa5Ezv@mail.gmail.com>
@ 2011-03-10 17:54 ` hjemli
2011-03-11 15:13 ` amery
0 siblings, 1 reply; 2+ messages in thread
From: hjemli @ 2011-03-10 17:54 UTC (permalink / raw)
[Added cgit list to CC]
On Sat, Mar 5, 2011 at 14:44, Alejandro Mery <amery at geeks.cl> wrote:
> Hi,
>
> I'm running 0.8.3.4 at http://git.opensde.net and everything is going
> great except the paths with a + on them.... like
> http://git.opensde.net/opensde/package-nopast/tree/gtk+
I've tested this on my local setup, and all of the following urls
works as expected:
* http://localhost/git/test/tmp/tree/a+b
* http://localhost/git/test/tmp/tree/gtk+
* http://localhost/git/test/tmp/tree/gtk+/foo
There' also some tests for this in tests/t0104-tree.sh.
Do you by any change use url rewriting?
--
larsh
^ permalink raw reply [flat|nested] 2+ messages in thread
* [cgit] a + in the path
2011-03-10 17:54 ` [cgit] a + in the path hjemli
@ 2011-03-11 15:13 ` amery
0 siblings, 0 replies; 2+ messages in thread
From: amery @ 2011-03-11 15:13 UTC (permalink / raw)
On Thu, Mar 10, 2011 at 18:54, Lars Hjemli <hjemli at gmail.com> wrote:
> [Added cgit list to CC]
>
> On Sat, Mar 5, 2011 at 14:44, Alejandro Mery <amery at geeks.cl> wrote:
>> Hi,
>>
>> I'm running 0.8.3.4 at http://git.opensde.net and everything is going
>> great except the paths with a + on them.... like
>> http://git.opensde.net/opensde/package-nopast/tree/gtk+
>
> I've tested this on my local setup, and all of the following urls
> works as expected:
> * http://localhost/git/test/tmp/tree/a+b
> * http://localhost/git/test/tmp/tree/gtk+
> * http://localhost/git/test/tmp/tree/gtk+/foo
>
> There' also some tests for this in tests/t0104-tree.sh.
>
> Do you by any change use url rewriting?
yes, there is one in nginx:
rewrite ^ /cgit.cgi$request_uri;
doing
export PATH_INFO=$(echo "$PATH_INFO" | sed -e 's,%2b,+,g')
in cgit.cgi did the trick. not sure if it's the browser or nginx who's
translating + to %2b
Thanks! :-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-11 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <AANLkTin8j6g4vZRe6ZGndSj9DNz04HO-UB8wK2sa5Ezv@mail.gmail.com>
2011-03-10 17:54 ` [cgit] a + in the path hjemli
2011-03-11 15:13 ` amery
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).