From ea2831f1c826d92c0158474c2d07837ec2f9fd6c Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Tue, 15 May 2007 00:48:31 +0200 Subject: Don't hardcode urls when SCRIPT_NAME is available Also, let the makefile define the name of the installed cgi and use that definition as a default value for cgit_script_name variable. Signed-off-by: Lars Hjemli --- shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared.c') diff --git a/shared.c b/shared.c index 072bb6d..8505397 100644 --- a/shared.c +++ b/shared.c @@ -17,7 +17,7 @@ char *cgit_logo = "/git-logo.png"; char *cgit_logo_link = "http://www.kernel.org/pub/software/scm/git/docs/"; char *cgit_module_link = "./?repo=%s&page=commit&id=%s"; char *cgit_virtual_root = NULL; - +char *cgit_script_name = CGIT_SCRIPT_NAME; char *cgit_cache_root = "/var/cache/cgit"; int cgit_nocache = 0; -- cgit v1.2.3-70-g09d2