From fa99de7d64e2f683f758fef608f463dad11e4491 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 4 Sep 2024 12:01:43 +0300 Subject: Extend edit/commit end-points to push to bare repo. * web/view/markdown.scm: Export git-invoke. * web/webserver.scm [+global-repo+]: Delete. [+current-repo-path+]: New variable. (+cgit-repo-path+): New variable. (commit-file-handler): Commit changes to a normal repository and later puh to the bare repository. (controller): Uupdate "GET /edit" and "POST commit" to use the +current-repo+. Signed-off-by: Munyoki Kilyungi --- web/view/markdown.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/view') diff --git a/web/view/markdown.scm b/web/view/markdown.scm index 3236cce..6aa2935 100644 --- a/web/view/markdown.scm +++ b/web/view/markdown.scm @@ -16,7 +16,7 @@ #:use-module (web sxml) #:use-module (commonmark) #:export (markdown-file->sxml markdown-github->sxml fetch-file - fetch-raw-file commit-file)) + fetch-raw-file commit-file git-invoke)) (define (markdown-file->sxml fn) "Parse a local file" -- cgit v1.2.3