summaryrefslogtreecommitdiff
path: root/tissue/file-document.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tissue/file-document.scm')
-rw-r--r--tissue/file-document.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tissue/file-document.scm b/tissue/file-document.scm
index ccd6a48..f389976 100644
--- a/tissue/file-document.scm
+++ b/tissue/file-document.scm
@@ -71,7 +71,7 @@
(define (file-text file)
"Return the contents of text @var{file}."
- (call-with-file-in-git (current-git-repository) file
+ (call-with-input-file file
get-string-all))
(define-method (document-text (document <file-document>))
@@ -139,7 +139,7 @@ MSet object representing a list of search results."
"Read gemtext document from @var{file} and return a
@code{<file-document>} object."
(make <file-document>
- #:title (or (call-with-file-in-git (current-git-repository) file
+ #:title (or (call-with-input-file file
(lambda (port)
(port-transduce (tfilter-map (lambda (line)
;; The first level one