Commits
- Commit:
b1b2091b92cf99c8f0fe87488f2757f4d712e094
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: drop redundant NULL check
qs is guaranteed to be not NULL reached that point.
- Commit:
e73ab4217d50bcfc9f6a2d0a42a87a13cf72bf5d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: remove useless comment
should be placed further down, after BLOB and RSS are handled, but the
call to `gotweb_render_header' is successfully clear on its own.
- Commit:
1abb18e1777172a9f4149a0f50c4cecfd024f02c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add an RSS feed for the tags
ok tracey@
- Commit:
156a11447a870d2128d6ddce97013fca0cfd4e6a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: templateify gotweb_render_commits
ok tracey@
- Commit:
b4c0bd7275f121f6250964ddfdf8db160ad486df
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: templateify gotweb_render_navs
ok tracey@
- Commit:
03f6a843c825ee4566446557cfa33bd1ebb1827b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: drop index_page_str and page_str
gotwebd uses sprintf to update index_page_str and page_str if they were
negative. While this specific usage is safe, let's drop it. Since the
index_page_str and page_str fields are never read from, remove them.
This saves two allocations per request too.
ok tracey@
- Commit:
6169d054065c0cf8901f97798d42785fc28819cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix broken navigation in commits page since 8d02314
ok tracey@
- Commit:
ed619ca07e51b9c984c8404ca2b1153efdb14d1e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: start using the template system
ok tracey@
- Commit:
6970304f7fbe7bb6534af3f344013b472a1a9698
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: simplify bit of gotweb_process_request
ok tracey
- Commit:
270c41a2b8c0d37d0ea9710a656369efa551dfcd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: provide maximum value for the description and cloneurl
ok stsp@
- Commit:
3b81530f7d0ffe60024f054f6d87ff8dd558e3fe
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: rework gotweb_get_repo_{description,cloneurl}
- use openat(2) since we've already opened the containing dir
- use fstat(2) instead of multiple seeks
- don't special case len == 0
ok and improvements by stsp
- Commit:
c127fc49cfbf532409724a0e4644f4b2539e430f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: drop unused path parameter from got_get_repo_{owner,age}
ok jamsek
- Commit:
525dfdf4c8ff4fe146e1925f64a5f8e428795611
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: simplify gotweb_render_index
- drops the double loop; paginate in one go
- avoid lstat + got_path_dir_is_empty for each entry: use dt_type if
provided by the underlying filesystem
- fixes a memleak: before `continue' we need to call
gotweb_free_repo_dir
ok stsp
- Commit:
659fa237eb8559857da5f0451c00e98ce43254a6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: use prev_disp to decide when to we've reached max_repos
instead of hardcoding d_i - 2 and so expecting only "." and ".." as
skipped entries, use t->prev_disp that is the number of repositories
traversed until now (both skipped due to the pagination and the ones
actually rendered.)
ok jamsek
- Commit:
b18b22548b5f83b9ec2eaf63b161fa5f76febdbc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix memleak in error path
ok stsp@
- Commit:
d5996b9efcd57875669fb0b06006ecf8cf566272
- From:
- Landry Breuil <landry@openbsd.org>
- Date:
add respect_exportok flag, defaulting to off
allows to hide repositories if they have the magic git-daemon-export-ok file
ok op@ tracey@ stsp@
- Commit:
b2e7d31ee036249faf5099d0a548d8e0b1dcc520
- From:
- Landry Breuil <landry@openbsd.org>
- Date:
send a newline first if erroring out in plaintext mode
otherwise, the webserver might complain:
'upstream sent invalid header: "gotwebd\x20..." while reading response header from upstream'
ok stsp@
- Commit:
0e678fc8b5ec094de9fab7b1a3ab6886ecb2c95a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: drop needless NULL check
We can assume that the querystring was initialized when we reach
gotweb_render_header. ok tracey@
- Commit:
8d02314fcaebb323c9ca3b102f8a085d66ea4633
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: percent-encode generated URLs
This adds a new helper function `gotweb_link' that outputs an HTML link
with the parameter correctly escaped.
ok stsp@
- Commit:
f864583e1f5425a3f135ee971b1445b4bc6c8b10
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add missing closing for div tags_content
reported by the W3C validator.
- Commit:
93c74716961ac29893d89a1d807530c448a168b3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix page title
due to an error in the order of the arguments to fcgi_printf that I've
introduced last time I touched gotweb_render_header the title is now
"/" (or SCRIPT_NAME) and one assets (the safari pinned tab svg) is a
funny URL :)
- Commit:
7e0ec0529553d4a8e236cad41366f79eda5126b3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: shrink struct server
keeping GOTWEBD_REPO_CACHESIZE * sizeof(struct cache_repo) inside the
struct server makes it too large for imsg on some platforms (linux at
least.) Instead, store a pointer and allocate the array when it's
received on the child processes.
ok stsp@
- Commit:
58381f7013ee220415b44aaf36c549b2f1cd2937
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: percent-decode the received query string
ok stsp@
- Commit:
f49cdcf59198e93c55db09c0382d04e448b5defe
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free age and reflist in gotweb_render_branches
ok stsp@
- Commit:
2db401bd3a14512e3a1f1cbe686fff37b2c56764
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free scandir(3) result in gotweb_render_index
ok stsp@