Commits
- Commit:
5e5da8c4bcc83f7737a115b8da52fc3935fe3a6b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got_fetch_parse_uri() to got_dial_parse_uri()
This function is now being used by both 'got fetch' and 'got send' so
its former name was misleading.
- Commit:
77d7d3bb1aabafae6c020c8a07a6e9f4f7885c9b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
de-duplicate a constant used by both 'got fetch' and 'got send'
Both GOT_FETCH_PKTMAX and GOT_SEND_PKTMAX had the same value.
Declare this value as GOT_PKT_MAX in got_lib_pkt.h instead.
- Commit:
d65a88a2f0db40d2c2ac34ee34e8aff8ac629d52
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move duplicated dial_ssh() and dial_git() functions into a common file
These functions are used by 'got send' and 'got fetch' in order to
open network connections to a server. Move them into new file lib/dial.c
and declare relevant functions in got_dial.h and lib/got_lib_dial.h.
No functional change.
- Commit:
9ec58fff16b1c2fc1d33d9955b42cadaa9e26f29
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use socketpair(2) instead of pipe(2) for bi-directional communication
On Linux, pipes returned from pipe(2) only work in one direction.
This broke 'got clone' over ssh in the -portable version because
got-fetch-pack assumes it can use its fetchfd for both reading and writing.
I wrote a complicated diff to use two pipe(2) calls instead of one, but
millert suggested a simpler solution: Use socketpair(2) instead of pipe(2).
ok millert jrick tracey
- Commit:
f270548637fc35b5b9576bd91ac1bdcbffb1f039
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
dial_git(): fix memory leak and simplify
Simplify dial_git() by formatting the initial Git protocol packet
with dprintf, suggested by millert, and stop leaking an asprintf
buffer.
ok stsp
- Commit:
4d9042b347e757448bd0dff60537fe57e1af5ad1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix error checking in dial_ssh()
- Commit:
08578a35f60be8657db97b705f27a55ab61850c8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make close(2) failure checks consistent; check 'close() == -1' everywhere
ok millert, naddy
- Commit:
d9dff0e5c658f1bef8647522dcb5b851b3f4734e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch reflist to TAILQ; insert elements more efficiently for sorted input
ok naddy
- Commit:
ccf6dd5ee6c1143dcf745ddc604e192389882a38
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid signed vs unsigned comparisons in fetch.c
ssizeof() macro idea courtesy of millert@
ok millert@
- Commit:
16aeacf7088dcd3cd5e654af46a3015cecf41426
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; from emaste@freebsd
- Commit:
0843a4ce462d9a691a3b5f38a465b129b69fdd5f
- From:
- Sebastien marie <semarie@openbsd.org>
- Date:
use fchmod(2) instead of chmod(2). it is less racy, and we just opened the descriptor.
ok naddy@ stsp@
- Commit:
f8c474099e137ca59909ff027a093d754d222f9a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix permissions mode bits for fetched pack files; patch by Alisdair MacLeod
- Commit:
e03cc83491255ff69034ff6c824f9ba6062fcddd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle failed connection attempts to git:// servers; patch by jrick
- Commit:
66cb1a7f5e4316136ae88f7521bc15e2c07f79c5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
strip trailing slashes from repository path in got_fetch_parse_uri()
- Commit:
0921e08fd73a69dae201e11e6feaf9227be19285
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove redundant leading slashes from repository path when parsing URIs
- 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:
78fb09675bee22e8ae24eb8bd9a86d8a04b17a7e
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use the POSIX standard endian functions and explicitly include <endian.h>
ok stsp
- Commit:
81a12da58651e79380d81dea7020bf6af20bb28b
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
do not rely on <zlib.h> to pull in <unistd.h>
ok stsp
- Commit:
59d5e252cee2c78ee6217704af2c93d99b282572
- From:
- Sebastien marie <semarie@openbsd.org>
- Date:
don't override port configuration with explicit argument if the url doesn't contains it
it permits to .ssh/config to be honored
same diff from stsp@
- Commit:
465971eec96aef0fcae09797cf38a9f3c2e8cc6a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
stop verifying pack file checksum in the main process during clone/fetch
Both got-fetch-pack and got-index-pack now verify the pack file checksum.
This means we can avoid reading the entire pack file in the main process
just to verify its checksum and avoid a noticable stall between fetching
and indexing on slow machines.
- Commit:
1d72a2a0ee2d5c4546c0471e054c0d81e407bc72
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
represent packfile hash as byte array in the privsep layer, not as object ID
- Commit:
92dc95a8ef154c5ab569feff59be53cea26f5a90
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
always initialize pack hash output parameter of got_fetch_pack()
- 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:
393fb88d6194f734060bc169da1b73f70648a3ab
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle reference-only updates in 'got fetch' where server sends an empty pack