Commits


CHANGES for 0.127


restore gotwebd's ability to redirect with HTTP status codes This is needed to keep our tests passing because w3m does not work as required in our test scripts when the HTML body refresh redirect method is used. testing + ok jtt@


rename gotweb_render_fake_redirect() to gotweb_render_refresh_redirect() Strictly speaking, this redirect is not fake. It attempts to redirect the browser via the page refresh mechanism. Adjust name accordingly.


sanitize path-prefix; avoids failures when there's a trailing slash if there's a trailing slash in the path-prefix, we end up creating bad paths that break the logic in multiple places. Make sure to have it cleared at creation and parsing time. While here, change got_worktree_match_path_prefix() to use got_path_cmp() instead of strcmp(). ok/improvements stsp@


worktree: improve error in insert_tree_entry part of a larger diff that's ok stsp@


check the sysd build target in got-build-regress.sh


Fix Gotsysd build. This was broken due to a missing #include via commit 69ac886cd64b82483fbb0e3114eb447f1d2ff9e0


do not delete ignored with files got rm -s ? by default; add -I option for this


make tog log view reload work tree base commit info during Ctrl-L refresh ok Kyle Ackerman


add test coverage for got rm -s ? ok Kyle Ackerman


add rm -s ? option for deleting unversioned files from the work tree ok Kyle Ackerman


do not raise errors when unversioned files are found during got rm -k ok Kyle Ackerman


gotwebd: use stylesheet in redirection page ok stsp@


gotwebd: refresh site to "redirect" after login Some mobile browsers (e.g. Fennec and Vanadium, Firefox and Chromium based browsers, respectively) don't redirect to the repositories index when launched with the authentication URL after login. This was reproduced programmatically using dart's url_launcher library[0], as well as by using "Open with" from the context menu in Termux when selecting the authentication URL. The issue is discussed in a StackOverflow thread[1], which suggests the workaround implemented here. Instead of redirecting using a HTTP 307 'Temporary Redirect' response, reply with 200 'OK' and perform a client-side "redirection" using an HTML 'meta http-equiv="refresh"' tag. ok stsp@ and op@ [0] https://pub.dev/packages/url_launcher [1] https://stackoverflow.com/questions/4694089/sending-browser-cookies-during-a-302-redirect


document missing dependencies for gotsysd regress ok stsp@


update 'got merge' command documentation; tweak wording, and mention tags


make 'got merge' accept tags as merge source argument Reuse a tag-resolution function from tog.c, moving it to the lib directory such that the got command can make use of it as well. Add test coverage. ok op@


Add version flag (-V, --version) to gotsysd ok stsp@


Add version flag (-V, --version) to gotwebd ok stsp@


Add version flag (-V, --version) to gotd ok stsp@


re-add cmdline tests to make regress target This was accidentally removed in commit 8c28cf249f4658 ("repair gotsysd build after network sha256 changes") Pointed by out Kyle Ackerman on IRC, thanks!


remove caveat about missing sha256 network support from got.1


bump version number


CHANGES for 0.126


sync dist file list