From 0fbd7148fb17860a8738562bdd1a9cf427b8ff60 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 7 Nov 2019 09:36:31 +0100 Subject: [PATCH] edit/page: git directory relative to site root No longer a subdirectory in Lijtweg since commit v2.6-134-g7b106a3076 (2018-09-21) [move www subdirectory to root]. --- edit/page/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/page/index.php b/edit/page/index.php index 6c123af..d506e8f 100644 --- a/edit/page/index.php +++ b/edit/page/index.php @@ -71,7 +71,7 @@ if (!file_exists(dirname($filename)) and !mkdir(dirname($filename), 0777, TRUE)) if (!file_put_contents($filename, $upload)) abort("fout bij schrijven van $filename", '500 save error'); -if (is_writable('../.git')) { +if (is_writable('.git')) { $gitmsg = preg_replace('/\.html$/', '', $filename).": edit from {$_SERVER['REMOTE_ADDR']}"; $gitcmd = 'git'; $gitcmd .= ' -c user.name='.escapeshellarg($User->name ?: $User->login); -- 2.30.0