forked from mirrors/org-mode
org-attach.el: Fix check for git annex
* lisp/org-attach.el (org-attach-commit): Check for .git/annex dir in addition to annex dir in root git dir to ensure that git annex is used TINYCHANGE
This commit is contained in:
parent
45555db2bd
commit
6d88ee5ff0
|
@ -283,7 +283,8 @@ This checks for the existence of a \".git\" directory in that directory."
|
||||||
(cd dir)
|
(cd dir)
|
||||||
(let ((have-annex
|
(let ((have-annex
|
||||||
(and org-attach-git-annex-cutoff
|
(and org-attach-git-annex-cutoff
|
||||||
(file-exists-p (expand-file-name "annex" git-dir)))))
|
(or (file-exists-p (expand-file-name "annex" git-dir))
|
||||||
|
(file-exists-p (expand-file-name ".git/annex" git-dir))))))
|
||||||
(dolist (new-or-modified
|
(dolist (new-or-modified
|
||||||
(split-string
|
(split-string
|
||||||
(shell-command-to-string
|
(shell-command-to-string
|
||||||
|
|
Loading…
Reference in a new issue