Commit Briefs

46d73a3301 Thomas Adam

portable: release 0.78 (tags/0.78)


76ab3c0ac4 Thomas Adam

sync files from diff.git 29c010c8648ec861ee463bc8fa8c66a64dd01154

This brings in a build fix for OpenBSD/sparc64.


ab10379394 Thomas Adam

changelog markup fix


02fa198011 Thomas Adam

bump version number


82226db16c Thomas Adam

CHANGES for 0.78


48ff6f55f4 Thomas Adam

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'


db97f624e0 Thomas Adam

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.


4ea11ec702 Thomas Adam

fix reference counting of raw objects opened via privsep helpers

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



9e1ed038df Thomas Adam

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

ok op@


d259e49165 Thomas Adam

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

ok op@


b5bedbbb00 Thomas Adam

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

ok op@


fc2a50f289 Thomas Adam

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@


ef89979059 Thomas Adam

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

ok landry@



1a2caa8798 Thomas Adam

sync dist file list



e0220e748c Thomas Adam

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

ok op@


3991b2a5fc Thomas Adam

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@


832b8374d8 Thomas Adam

gotd: propagate confpath to children as well

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


a093420695 Thomas Adam

awk ftw! no need to grep, awk can filter lines by itself

ok stsp@


280d06442f Thomas Adam

change example to use useradd; ok stsp@


a5f25a125b Thomas Adam

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@


3d47d5be9c Thomas Adam

require space between commit author name and email, for Git compatibility

Allowing such author fields breaks 'got send' towards Github for affected commits because git-index-pack --strict will error out on the server: $ git index-pack --strict pack-de791fb6a3a1961e44ac5d98d72fd533bf9277c8.pack error: object 5d6bde9eaaf27f41ae8fa7112bb45e489d3c16b9: missingSpaceBeforeEmail: invalid author/committer line - missing space before email fatal: fsck error in packed object problem encountered by landry@ ok op@