Commit Briefs

08603e79bb Stefan Sperling

zero-initialize all of struct got_inflate_buf in got_inflate_init()

Fixes a potential bogus free on error. got_inflate_end() relies on zb.flags to be initialized. It will try to free a bogus zb.outbuf pointer if zb.flags happens to set by uninitialized stack memory while we are calling got_inflate_end() in an error path.





758dc042e8 Stefan Sperling

remove trailing whitespace; patch by Josiah Frentsos



9f76ccc895 Stefan Sperling

sync files from diff.git 29c010c8648ec861ee463bc8fa8c66a64dd01154

This brings in a build fix for OpenBSD/sparc64.


3462996772 Stefan Sperling

changelog markup fix


587ef51166 Stefan Sperling

bump version number


9925a128de Stefan Sperling

CHANGES for 0.78 (tags/0.78)


ffe7e7c163 Stefan Sperling

fix free() of wrong address in gotweb's parse.y

Found by sthen via ports-gcc: gotweb/parse.y:504:3: warning: attempt to free a non-heap object 'file'


7a52a8bcab Stefan Sperling

remove casts which make older gcc versions unhappy

../lib/diffreg.c:44: error: initializer element is not constant ../lib/diffreg.c:51: error: initializer element is not constant ../lib/diffreg.c:59: error: initializer element is not constant ../lib/diffreg.c:66: error: initializer element is not constant reported by Red on Libera IRC, and by sthen@ who pointed out such failures appearing in landry's sparc64 bulk build logs.


e3ad2c64b4 Stefan Sperling

fix reference counting of raw objects opened via privsep helpers

Such objects were never closed, resulting in memory and file descriptor leaks.


a32f631eeb Stefan Sperling

visit gotctl folder during make obj, release, and clean


210c2321a3 Stefan Sperling

do not hint at empty temporary diff files in the log message buffer

ok op@


4ba5cca9fc Stefan Sperling

ensure that files are in a state where a diff can be created, before diffing

ok op@


6d15dc69f0 Stefan Sperling

use a global flag instead of a per-file flag to detect staged changes

ok op@


b90054ed55 Stefan Sperling

use mkstemps(3) instead of mkstemp(3) for opening named temporary files

Allows 'got commit' to use a ".diff" suffix for temporary diff files. ok op@


2a47b1e585 Stefan Sperling

provide a diff of changes in a temp file while editing a commit log message

ok landry@



27206177c8 Stefan Sperling

sync dist file list



5753b4a9eb Stefan Sperling

respect resource limit for number of open files when sizing the pack file cache

ok op@


d5996b9efc Landry Breuil

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@


585362fdef Omar Polo

gotd: propagate confpath to children as well

otherwise they end up running with default config which isn't ideal. ok stsp@