Permalink
Browse files

make op/git-files-changed work even repo-dir is not ending with /

  • Loading branch information...
jixiuf committed Feb 6, 2017
1 parent bef1e2f commit 3aa7d24b807b93f8b94968040f6000e48ed4238d
Showing with 2 additions and 2 deletions.
  1. +2 −2 op-git.el
View
@@ -92,9 +92,9 @@ only two types will work well: need to publish or need to delete.
(--each (split-string output "\n")
(when (string-match "\\`[A|M]\t\\(.*\.org\\)\\'" it)
(!cons (concat repo-dir (match-string 1 it)) upd-list))
(!cons (concat git-repo (match-string 1 it)) upd-list))
(when (string-match "\\`D\t\\(.*\.org\\)\\'" it)
(!cons (concat repo-dir (match-string 1 it)) del-list)))
(!cons (concat git-repo (match-string 1 it)) del-list)))
(list :update upd-list :delete del-list)))

0 comments on commit 3aa7d24

Please sign in to comment.