]> git.ipfire.org Git - thirdparty/git.git/commitdiff
lib-git-svn.sh: Add check for mis-configured web server variables
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 14 Dec 2010 18:25:11 +0000 (18:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Dec 2010 19:11:35 +0000 (11:11 -0800)
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-svn.sh

index 919d45a7d4dab2dae9efc46b1be281eff95c0c1c..6a9d9757239f0476422b1a97228927b1ba1ac934 100644 (file)
@@ -81,6 +81,11 @@ then
                        break
                fi
        done
+       if test -z "$SVN_HTTPD_PATH"
+       then
+               skip_all='skipping git svn tests, Apache not found'
+               test_done
+       fi
        for d in \
                "$SVN_HTTPD_MODULE_PATH" \
                /usr/lib/apache2/modules \
@@ -92,6 +97,11 @@ then
                        break
                fi
        done
+       if test -z "$SVN_HTTPD_MODULE_PATH"
+       then
+               skip_all='skipping git svn tests, Apache module dir not found'
+               test_done
+       fi
 fi
 
 start_httpd () {