Commits
- Commit:
43a44bcef13e7014c764133b35560035d246baaf
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: simplify bit of gotweb_process_request
ok tracey
- Commit:
3e9a56b5bba8e25189ba076c2c3d6fd0b56a6446
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: provide maximum value for the description and cloneurl
ok stsp@
- Commit:
53f9cbbf15eda94db076b865ad565e51da757669
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: sha1.h
- Commit:
4606e6d4d9f8bbd3f9e4ac08a08f06f8793467d7
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
6c7f10f7250c7b1cb44cc9490bec065ad0107d24
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: drop unused path parameter from got_get_repo_{owner,age}
ok jamsek
- Commit:
24240f6a1c027ee762d62f20165a6b8d5ed88980
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
57e88d7cd338f2bca9e5bcb9184ddda2ab435197
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
2dd71cdd72c0c6c4ce607fdc73ae38fa898bfeb2
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: fix memleak in error path
ok stsp@
- Commit:
3991b2a5fc4bf9e028e24e4ea4f7f66f1ed4ff6c
- From:
- Landry Breuil <landry@openbsd.org>
- Via:
- Thomas Adam <thomas@xteddy.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:
a5f25a125bdd034cacf049f827a57f9cfc837134
- From:
- Landry Breuil <landry@openbsd.org>
- Via:
- Thomas Adam <thomas@xteddy.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:
790ca73c1011a3aedd266ed382a84bd9a5094816
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: drop needless NULL check
We can assume that the querystring was initialized when we reach
gotweb_render_header. ok tracey@
- Commit:
5514426792c3f9a07f4ab50620e8244650937c2d
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
80ca8b0f888ae433e7e8e39317ab5647687e2c23
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: add missing closing for div tags_content
reported by the W3C validator.
- Commit:
686a711704036333d33dca7a63fa3501d4d6acdd
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
a004b24a97cfaa2be171871f42cdc15e24fa8682
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
2ac684a4e1b8a971689edc8c5543832dd1b9db0e
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: percent-decode the received query string
ok stsp@
- Commit:
f95e65a1d73cdc27fb408e34c6934bbdc8c3abe1
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: free age and reflist in gotweb_render_branches
ok stsp@
- Commit:
f530ab0e9647e91457d9f44afe8be17788bf1e8a
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: free scandir(3) result in gotweb_render_index
ok stsp@
- Commit:
b07649844986a31ed1720dab9b3717b7fe315b9f
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: free qs->headref before overwriting it
- Commit:
8463025419989fa48e0b637d82db3c9c11119aaf
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: fix leak in gotweb_init_querystring in error path
if strdup fails we fail to free the querystring
Found by clang' scan-build.
- Commit:
1510f72d86432ddfe0f08cc35fe89497c82bf7f1
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: add missing fcgi_printf return check
dead store found by clang' scan-build.
- Commit:
fb3a8240761404943fd35b3d2c3311e68c0683e4
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: fix assets URLs
In 95a4a5a1e8d0952ee0d2523dc31df7170d80e0b3 I forgot to fix the links
for the favicons and the web manifest.
- Commit:
c8d0196f09c787edce11ee6b848ecb8ad8afb1b4
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix regression in gotweb_free_repo_tag(): free(...): modified chunk-pointer
problem introduced in commit 625e5896fc9ecf87ccfc92ad2a65cd3be58f73c0
- Commit:
217813df81cbe2ba47d4ed204298a3f204014340
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: free all allocated fields of repo_tag
got_get_repo_tags needs some tweaking to how tag_commit is allocated
too.
ok stsp@
- Commit:
3179741908f46f3c1711b053ad2ab839c746a5bf
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
gotwebd: fix possible leaks when handling errors
all very unlikely.
part of a bigger diff that's ok stsp@