aboutsummaryrefslogtreecommitdiff
path: root/web/view
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-09-04 12:01:43 +0300
committerMunyoki Kilyungi2024-09-04 12:01:43 +0300
commitfa99de7d64e2f683f758fef608f463dad11e4491 (patch)
treeee48e323919410c63bee3c560643d4d034fa555e /web/view
parent3eafbd03355581d72e89d4b5274975f795043850 (diff)
downloadgn-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.scm2
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"