t5410: use longer path for sample script
t5410 creates a sample script "alternate-refs", and sets core.alternateRefsCommand to just "alternate-refs". That shouldn't work, as "." is not in our $PATH, and so we should not find it. However, due to a bug in run-command.c, we sometimes find it anyway! Even more confusing, this bug is only in the fork-based version of run-command. So the test passes on Linux (etc), but fails on Windows. In preparation for fixing the run-command bug, let's use a more complete path here. Reported-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Oct 24, 2018 at 03:37 UTC
e6641d2fa6d46fbd4bfd6656d5112db0f014dfca
1 file changed
+1
-1
t/t5410-receive-pack-alternates.sh
+1
-1
@@ -23,7 +23,7 @@ test_expect_success 'with core.alternateRefsCommand' '
23
--format="%(objectname)" \
24
refs/heads/public/
25
EOF
26
- test_config -C fork core.alternateRefsCommand alternate-refs &&
26
+ test_config -C fork core.alternateRefsCommand ./alternate-refs &&
27
git rev-parse public/branch >expect &&
28
printf "0000" | git receive-pack fork >actual &&
29
extract_haves <actual >actual.haves &&