Skip to content

Commit

Permalink
Merge pull request #207 from jixiuf/op/git-files-changed--fix
Browse files Browse the repository at this point in the history
make op/git-files-changed  work even  repo-dir is not  ends with /
  • Loading branch information
sillykelvin authored Feb 7, 2017
2 parents be21ea5 + 3aa7d24 commit c2f54f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit c2f54f3

Please sign in to comment.