소스 검색

[ledger] path fix

Innocenty Enikeew 8 년 전
부모
커밋
12adceb7f4
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      plugins/ledger.lisp

+ 3 - 3
plugins/ledger.lisp

@@ -28,8 +28,8 @@
 
 (defsetting *git-repos-root* "/tmp/ledger-repos/")
 (defun git-get-chat-location (chat-id remote)
-  (merge-pathnames (format nil "~A-~A" chat-id (token-hmac remote))
-                   *git-repos-root*))
+  (namestring (merge-pathnames (format nil "~A-~A" chat-id (token-hmac remote))
+                               *git-repos-root*)))
 
 (defun git-read-latest-file (repo path)
   (bt:with-recursive-lock-held ((git-get-repo-lock repo))
@@ -58,7 +58,7 @@
                                            :if-exists :supersede
                                            :if-does-not-exist :create)
             (format s "~A~A" current text)))
-        (legit:add repo repo-path)
+        (legit:add repo (namestring repo-path))
         (legit:commit repo message)
         (handler-case
             (progn