diff options
author | Munyoki Kilyungi | 2024-09-04 12:01:43 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-09-04 12:01:43 +0300 |
commit | fa99de7d64e2f683f758fef608f463dad11e4491 (patch) | |
tree | ee48e323919410c63bee3c560643d4d034fa555e /web/view | |
parent | 3eafbd03355581d72e89d4b5274975f795043850 (diff) | |
download | gn-guile-fa99de7d64e2f683f758fef608f463dad11e4491.tar.gz |
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 <me@bonfacemunyoki.com>
Diffstat (limited to 'web/view')
-rw-r--r-- | web/view/markdown.scm | 2 |
1 files changed, 1 insertions, 1 deletions
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" |