Skip to content

Commit cff484a

Browse files
Ramsay Jonesgitster
authored andcommitted
lib-git-svn.sh: Add check for mis-configured web server variables
Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b6fe974 commit cff484a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

t/lib-git-svn.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ then
8181
break
8282
fi
8383
done
84+
if test -z "$SVN_HTTPD_PATH"
85+
then
86+
skip_all='skipping git svn tests, Apache not found'
87+
test_done
88+
fi
8489
for d in \
8590
"$SVN_HTTPD_MODULE_PATH" \
8691
/usr/lib/apache2/modules \
@@ -92,6 +97,11 @@ then
9297
break
9398
fi
9499
done
100+
if test -z "$SVN_HTTPD_MODULE_PATH"
101+
then
102+
skip_all='skipping git svn tests, Apache module dir not found'
103+
test_done
104+
fi
95105
fi
96106

97107
start_httpd () {

0 commit comments

Comments
 (0)