aboutsummaryrefslogtreecommitdiff
path: root/web/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/view')
-rw-r--r--web/view/markdown.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/view/markdown.scm b/web/view/markdown.scm
index d147a8f..d561832 100644
--- a/web/view/markdown.scm
+++ b/web/view/markdown.scm
@@ -66,7 +66,7 @@
(if (file-exists? abs_path) (let* ((full_path (canonicalize-path abs_path))
(content (call-with-input-file full_path get-string-all))
(commit-sha (get-latest-commit-sha1 repo)))
- `(("path" . ,query_path)
+ `(("file_path" . ,query_path)
("content" . ,content)
("hash" . ,commit-sha))
) (throw 'file-error (string-append "the file path " abs_path " does not exists")))))
@@ -106,8 +106,8 @@
"--author" (format #f "~a <~a>" username email)))
(git-commit-sha (get-latest-commit-sha1 repo)))
(if (zero? git-commit-file)
- `(("status" . "201") ("message" . "committed file successfully") ("content" . ,content) ("commit-sha" . ,git-commit-sha) ("commit-message" . ,commit-message) )
- `(("status" . "200") ("message" . "Nothing to commit, working tree clean") ("commit-sha" . ,git-commit-sha)))))
+ `(("status" . "201") ("message" . "committed file successfully") ("content" . ,content) ("commit_sha" . ,git-commit-sha) ("commit_message" . ,commit-message) )
+ `(("status" . "200") ("message" . "Nothing to commit, working tree clean") ("commit_sha" . ,git-commit-sha)))))
(#f
(throw 'system-error (string-append file-path " File does not exist Error"))))
(throw 'system-error (string-append repo " Is not a git repo."))))