Skip to content

Commit 63ddde6

Browse files
committed
Merge branch 'ab/ls-remote-packet-trace'
Debugging aid fix. * ab/ls-remote-packet-trace: ls-remote: set packet_trace_identity(<name>)
2 parents ce7ae09 + f58c746 commit 63ddde6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

builtin/ls-remote.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
8484
PARSE_OPT_STOP_AT_NON_OPTION);
8585
dest = argv[0];
8686

87+
packet_trace_identity("ls-remote");
88+
8789
UNLEAK(sorting);
8890

8991
if (argc > 1) {

t/t5702-protocol-v2.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ test_expect_success 'list refs with git:// using protocol v2' '
2727
ls-remote --symref "$GIT_DAEMON_URL/parent" >actual &&
2828
2929
# Client requested to use protocol v2
30-
grep "git> .*\\\0\\\0version=2\\\0$" log &&
30+
grep "ls-remote> .*\\\0\\\0version=2\\\0$" log &&
3131
# Server responded using protocol v2
32-
grep "git< version 2" log &&
32+
grep "ls-remote< version 2" log &&
3333
3434
git ls-remote --symref "$GIT_DAEMON_URL/parent" >expect &&
3535
test_cmp expect actual
@@ -151,7 +151,7 @@ test_expect_success 'list refs with file:// using protocol v2' '
151151
ls-remote --symref "file://$(pwd)/file_parent" >actual &&
152152
153153
# Server responded using protocol v2
154-
grep "git< version 2" log &&
154+
grep "ls-remote< version 2" log &&
155155
156156
git ls-remote --symref "file://$(pwd)/file_parent" >expect &&
157157
test_cmp expect actual

0 commit comments

Comments
 (0)