We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GIT_CONFIG_*
1 parent cc4a782 commit d0ca0baCopy full SHA for d0ca0ba
tests/helpers.sh
@@ -61,10 +61,16 @@ function small-repo-in-sandbox() {
61
62
function launch-git-daemon() {
63
local port=9418
64
- if true; then
65
- echo "We didn't check $port -- this just tests if we can bail out." >&2
+ if nc -z localhost "$port"; then
+ echo "Port $port should not have been open before this test's run of the git daemon!" >&2
66
return 1
67
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
74
git -c uploadpack.allowrefinwant daemon --verbose --base-path=. --export-all --user-path &>/dev/null &
75
daemon_pid=$!
76
while ! nc -z localhost "$port"; do
0 commit comments