about summary refs log tree commit diff
path: root/ui-patch.h
diff options
context:
space:
mode:
authorJoe Anakata <jea-signup-github@anakata.org>2016-02-22 18:45:53 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-22 18:46:33 +0100
commitde6098be6a65a4758ff8eac6359bd6fd30ba7bd3 (patch)
tree26ef2a8a74989348c2ec5bf17d0e1ac2a525294f /ui-patch.h
parentcmd: redirect empty about/ to homepage or summary (diff)
downloadcgit-pink-de6098be6a65a4758ff8eac6359bd6fd30ba7bd3.tar.gz
cgit-pink-de6098be6a65a4758ff8eac6359bd6fd30ba7bd3.zip
ui-plain: fix to show a repo's root directory listing in plain view
This is to fix the case of accessing http://host.com/cgit.cgi/repo.git/plain/

There is code here to make this case work (match_baselen is set to -1
for top-of-the-tree views) but the unsigned to signed comparison was
always false in this case, causing an empty directory listing without
this fix.

Signed-off-by: Joe Anakata <jea-signup-github@anakata.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-patch.h')
0 files changed, 0 insertions, 0 deletions
coding in titleJune McEnroe Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it. 2019-09-08Set title User-AgentJune McEnroe Some things don't like you if you don't send one. 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe Allows restarting consumers safely. 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe Oops, didn't see this. 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe