path: root/t/
diff options
authorJeff King <>2017-02-25 09:37:30 (GMT)
committerJunio C Hamano <>2017-03-10 22:30:25 (GMT)
commitbd4d9d993c1202615178f86a947a5c63e706860f (patch)
tree1381de60b357e326953deb1ff64ad8d9f61b45d6 /t/
parent3d8936153d8a962ace54a055ebdb308b09ca7c97 (diff)
t/interop: add test of old clients against modern git-daemon
This test just checks that old clients can clone and fetch from a newer git-daemon. The opposite should also be true, but it's hard to test ancient versions of git-daemon because they lack basic options like "--listen". Note that we have to make a slight tweak to the lib-git-daemon helper from the regular tests, so that it starts the daemon with our correct git.a version. Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 2 insertions, 1 deletions
diff --git a/t/ b/t/
index f9cbd47..987d406 100644
--- a/t/
+++ b/t/
@@ -46,7 +46,8 @@ start_git_daemon() {
say >&3 "Starting git daemon ..."
mkfifo git_daemon_output
- git daemon --listen= --port="$LIB_GIT_DAEMON_PORT" \
+ ${LIB_GIT_DAEMON_COMMAND:-git daemon} \
+ --listen= --port="$LIB_GIT_DAEMON_PORT" \
--reuseaddr --verbose \