Merge branch 'ab/ls-remote-packet-trace'
Debugging aid fix. * ab/ls-remote-packet-trace: ls-remote: set packet_trace_identity(<name>)
This commit is contained in:
@ -84,6 +84,8 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
|
|||||||
PARSE_OPT_STOP_AT_NON_OPTION);
|
PARSE_OPT_STOP_AT_NON_OPTION);
|
||||||
dest = argv[0];
|
dest = argv[0];
|
||||||
|
|
||||||
|
packet_trace_identity("ls-remote");
|
||||||
|
|
||||||
UNLEAK(sorting);
|
UNLEAK(sorting);
|
||||||
|
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
|
@ -27,9 +27,9 @@ test_expect_success 'list refs with git:// using protocol v2' '
|
|||||||
ls-remote --symref "$GIT_DAEMON_URL/parent" >actual &&
|
ls-remote --symref "$GIT_DAEMON_URL/parent" >actual &&
|
||||||
|
|
||||||
# Client requested to use protocol v2
|
# Client requested to use protocol v2
|
||||||
grep "git> .*\\\0\\\0version=2\\\0$" log &&
|
grep "ls-remote> .*\\\0\\\0version=2\\\0$" log &&
|
||||||
# Server responded using protocol v2
|
# Server responded using protocol v2
|
||||||
grep "git< version 2" log &&
|
grep "ls-remote< version 2" log &&
|
||||||
|
|
||||||
git ls-remote --symref "$GIT_DAEMON_URL/parent" >expect &&
|
git ls-remote --symref "$GIT_DAEMON_URL/parent" >expect &&
|
||||||
test_cmp expect actual
|
test_cmp expect actual
|
||||||
@ -151,7 +151,7 @@ test_expect_success 'list refs with file:// using protocol v2' '
|
|||||||
ls-remote --symref "file://$(pwd)/file_parent" >actual &&
|
ls-remote --symref "file://$(pwd)/file_parent" >actual &&
|
||||||
|
|
||||||
# Server responded using protocol v2
|
# Server responded using protocol v2
|
||||||
grep "git< version 2" log &&
|
grep "ls-remote< version 2" log &&
|
||||||
|
|
||||||
git ls-remote --symref "file://$(pwd)/file_parent" >expect &&
|
git ls-remote --symref "file://$(pwd)/file_parent" >expect &&
|
||||||
test_cmp expect actual
|
test_cmp expect actual
|
||||||
|
Reference in New Issue
Block a user