Skip to content

Commit

Permalink
borg--drone-states: Return only last part of path again
Browse files Browse the repository at this point in the history
This broke in 11aadf3 when `borg-updated-drones'
was replaced with `borg--drone-states'.
  • Loading branch information
tarsius committed Dec 15, 2018
1 parent 73990d3 commit 99d1667
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion borg.el
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,8 @@ Formatting is according to the commit message conventions."
(mapcar
(lambda (line)
(pcase-let* ((`(,state ,module) (split-string line "\t")))
(list module state
(list (file-name-nondirectory module)
state
(and (member state '("A" "M"))
(let ((default-directory (expand-file-name module)))
(if (file-directory-p default-directory)
Expand Down

0 comments on commit 99d1667

Please sign in to comment.