emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] org-attach.el: fix check for git annex


From: Erik Hetzner
Subject: [O] [PATCH] org-attach.el: fix check for git annex
Date: Sat, 16 May 2015 19:10:09 -0700
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/25.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

* 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
---
 lisp/org-attach.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index 1737ec1..7f61910 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -283,7 +283,8 @@ This checks for the existence of a \".git\" directory in 
that directory."
        (cd dir)
        (let ((have-annex
               (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
                   (split-string
                    (shell-command-to-string
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]