Commits
- Commit:
9b2510924916cdc1e66d879b43f4dc953aac3c83
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
use sub-second precision when checking for objects/pack/ modification
Convert from st.m_time (second-precision time_t) to st.m_tim (struct timespec).
To compensate for the potential case where a filesystem provides resolution
in seconds only, always read the directory if no pack files are known to exist.
Otherwise, there is a race condition when gotd repo_write creates a new pack
and a request arrives for repo_read shortly after. Caught by a regression test
for gotd on empty repositories. Test failure pointed out by Mikhail.
ok op@
- Commit:
c22ed3f5d5d97db3f1d8fc8c649537c9033136f9
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make 'got clone -b' work for repositories which lack a HEAD reference
ok op@
- Commit:
c94b2859b3b5268adec2353832d0491a11382f83
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
upate number elements stored in the delta cache when removing an element
- Commit:
b1fad72fdca8c2a237161cac88778e31a58bccb1
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add missing free() of delta buffers in several error paths
- Commit:
345f650943608219909e5b5b0e5d77c4c9ca26bb
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
reduce delta cache size to avoid running out of memory on large pack files
As reported by Jerome Kasper, got-index-pack would run out of memory while
cloning projects like LLVM or the Linux kernel. The delta cache was pushed
to its maximum size limit of ~2GB, which is much higher than the default
user data limit on OpenBSD. Set the delta cache size limits to values which
should result in the cache limiting itself to 128MB or less.
- Commit:
b5a8f7447cf93c910aa0933817b85799080ce17d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add dedicated compilation flag for the delta cache, separate from object cache
- Commit:
0699dbc20feda4209ace57a148624da7beceb692
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
zero-initialize all of struct got_deflate_buf in got_deflate_init()
Fixes a potential bogus free on error.
got_deflate_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_deflate_end() in an error path.
- Commit:
fedfac2c387cf3b4cb9e3530c517197190dadc2c
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
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.
- Commit:
a7e9cbc61974b99b3f64f9ccdb4f6cc50c1ac639
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make gotd work as intended on an empty repository; regression test is upcoming
- Commit:
ea1f05850232e766bb357cd6de49c4243bcf902b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix sending of capabilities from gotsh(1) in case repository has no refs
- Commit:
e28099979b03e56c094eb0e2f04137b96510f632
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix crash in got-send-pack when server does not announce any capabilities
- Commit:
946e0798ea070c1d164ea048bbbb316f748e7365
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
remove trailing whitespace; patch by Josiah Frentsos
- Commit:
4859aafde818941279d6e6afc2e419f65906d9ac
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: reorder system_extensions
Cosmetic change only. No functional changes expected.
Via Anna (cybertailor) Vyalkova
- Commit:
47e5cb11ac8fa697272eb25c054157df284e4dd0
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add AM_PROG_AR
Needed for stringent checks on Gentoo. Bug 879825.
Via Anna (cybertailor) Vyalkova.
- Commit:
965fcba660e4b5245c9fafb15153269228e11c9d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix crash in gotd if client gets disconnected on error; reported by Mikhail
- Commit:
6dbbfded937c923383970d564ff69f8c7eda2be4
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: set next version
- Commit:
46d73a3301a4948864f65f7d0c451513216753c7
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: release 0.78
- Commit:
76ab3c0ac4e48abb8703bf8960f72ba889a59bca
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
sync files from diff.git 29c010c8648ec861ee463bc8fa8c66a64dd01154
This brings in a build fix for OpenBSD/sparc64.
- Commit:
ab1037939416e69e8b2991dca3a055c8bd9a8b66
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
changelog markup fix
- Commit:
02fa198011b1d58aebbd4dcfa1dd12c320bac063
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
bump version number
- Commit:
82226db16cd39ebdf2d37a63352833367348a851
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
CHANGES for 0.78
- Commit:
48ff6f55f459728134aa80de2dcaccce975d3036
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
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'
- Commit:
db97f624e0d3f6f3e57fdb7961da1b61bb6baad1
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
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.
- Commit:
4ea11ec7029e366447b11f65f43410dcacf235d7
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix reference counting of raw objects opened via privsep helpers
Such objects were never closed, resulting in memory and file descriptor leaks.
- Commit:
293bc00f96e9792c98d2117397d55ea448cae73b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
visit gotctl folder during make obj, release, and clean