Skip to content

Commit d0ca0ba

Browse files
committed
Restore bail-out logic; show GIT_CONFIG_* vars
1 parent cc4a782 commit d0ca0ba

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/helpers.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,16 @@ function small-repo-in-sandbox() {
6161

6262
function launch-git-daemon() {
6363
local port=9418
64-
if true; then
65-
echo "We didn't check $port -- this just tests if we can bail out." >&2
64+
if nc -z localhost "$port"; then
65+
echo "Port $port should not have been open before this test's run of the git daemon!" >&2
6666
return 1
6767
fi
68+
(
69+
set +e -x
70+
echo 'GIT_CONFIG_* vars START'
71+
printenv | grep ^GIT_CONFIG_
72+
echo 'GIT_CONFIG_* vars END'
73+
) >&2
6874
git -c uploadpack.allowrefinwant daemon --verbose --base-path=. --export-all --user-path &>/dev/null &
6975
daemon_pid=$!
7076
while ! nc -z localhost "$port"; do

0 commit comments

Comments
 (0)