Commits
- Commit:
8991a328535f89f3f2257269f5c2d3fcec8bda69
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a missing bounds-check in got-fetch-pack when parsing server response
The tokenize_refline() function could end up reading past the end of
the buffer if the refline is not terminated with whitespace or \0.
- Commit:
a90356f7c470563a35922c4cbb01824558dcf207
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
prevent NULL deref in got-fetch-pack if server does not announce capabilities
The my_capabilities pointer may remain NULL. Check for NULL before use.
- Commit:
14d2b281dd2fafec8beebfca6b5911b0ff21d676
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix the error message shown when the server sends a bad ref line
Exposed by trying to run got clone -l against shithub.us over git://
found by abieber@
- Commit:
9ca26ac322eae778bdfe032617ce9f6af859bb7a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
style fix: avoid comparison of pointer variable against 0 in got-fetch-pack
- Commit:
98f64f14c3dc52ec6afc00acc53dc9f42399d363
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
work around spurious ACK responses from git servers in got-fetch-pack
The Git server can apparently send duplicate ACK responses even though we
do not enable the multi_ack capability. According to the Git protocol docs
the server should only send ACKs after receiving 'done' from the client if
multi_ack has been enabled.
However, a duplicate ACK response can be triggered by running 'got fetch -a'
in our fetch_update_tag test. This resulted in the following error:
got-fetch-pack: unknown side-band received from server
got: bad packet received
- Commit:
6059809a13b5d528052e38f84661039e6565f458
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; by emaste@freebsd
Same change as 16aeacf7088d, for subdirectories other than lib/
- Commit:
62d463cac1fd99c423acb07c0367c649724a2a9a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
indentation fixes
- Commit:
23c57b285fdcf9a8a0a5913ea096232038bf0ac3
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
Stop including <sys/syslimits.h> directly.
POSIX says the limits defined there are available from <limits.h>,
which almost all affected source files already included anyway.
ok millert stsp
- Commit:
3168e5da215c7b442d231f40bfd61df067505d8b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
zap trailing tabs
- Commit:
81a12da58651e79380d81dea7020bf6af20bb28b
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
do not rely on <zlib.h> to pull in <unistd.h>
ok stsp
- Commit:
631179de38cd91f5e53311c37386314fa2504ccd
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
Fix missing block grouping.
ok tracey stsp
- Commit:
1d72a2a0ee2d5c4546c0471e054c0d81e407bc72
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
represent packfile hash as byte array in the privsep layer, not as object ID
- Commit:
dc671e91ec5fbde514e27ed3d9ce4c6a0459538c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
compute pack file's checksum during download and check it in got-fetch-pack
Compared to the previous version committed in 520a0c97 this code should
compute the checksum correctly for any amount of pack file data bytes
read from the socket at a time.
- Commit:
729743d1bc420980f12d403c1b116dc6c7153339
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
revert 520a0c97f8081e4531fc9c88cda705a92afbddaf for now due to possible bug
- Commit:
520a0c97f8081e4531fc9c88cda705a92afbddaf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
compute pack file's checksum during download and check it in got-fetch-pack
- Commit:
e70bf110de343a3c1fc422b6682f56853686772f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move functions from privsep.c to the helpers which use them where possible
- Commit:
0e4002cadf11b9274c4355850d55bd59bbc20d31
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for fetching arbitrary references to 'got clone' and 'got fetch'
- Commit:
2690194b1af694bf2b56ac50c859ac6439dd6a7a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove GOT_FETCH_DEBUG and toggle fetch debug output with -v option instead
- Commit:
0bec957e3ce6c0ec61483903876bea697462cf21
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
close fetchfd when we're done in got-fetch-pack
- Commit:
4515a796e0b1abe895f186e1ce09e6c53fa4856b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'clone -l' and 'fetch -l' list all references, regardless of namespace
- Commit:
41b0de1256a7a8a9ed3d4c0d66809ebfcbf1a58d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for listing remote branches and tags to 'got clone' and 'got fetch'
- Commit:
4ba1413314ad741dd3eec3b6672b127f2e03428e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for fetching specific branches to 'got clone' and 'got fetch'
- Commit:
659e7fbd6952b401014702a1e181642a9bba17df
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fetch only HEAD branch and tags by default; add -a option to fetch everything
- Commit:
858b0dfb9f6a46cb34c70f152d8e6188b4624d2e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
re-add chatty mode to got-fetch-pack; it will be useful to diagnose bugs
- Commit:
c20695fb9307ffb954bf967bf3a74f4b31ac25a5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix off-by-one in writepkt() length parameter passed by fetch_pack()