6 : ${LIB_GIT_DAEMON_PORT:=5500}
7 LIB_GIT_DAEMON_COMMAND
='git.a daemon'
9 test_description
='clone and fetch by older client'
11 .
"$TEST_DIRECTORY"/lib-git-daemon.sh
13 start_git_daemon
--export-all
15 repo
=$GIT_DAEMON_DOCUMENT_ROOT_PATH/repo
17 test_expect_success
"create repo served by $VERSION_A" '
19 git.a -C "$repo" commit --allow-empty -m one
22 test_expect_success
"clone with $VERSION_B" '
23 git.b clone "$GIT_DAEMON_URL/repo" child &&
25 git.a -C child log -1 --format=%s >actual &&
26 test_cmp expect actual
29 test_expect_success
"fetch with $VERSION_B" '
30 git.a -C "$repo" commit --allow-empty -m two &&
36 git.a -C child log -1 --format=%s FETCH_HEAD >actual &&
37 test_cmp expect actual