From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-attach + git annex not working Date: Thu, 07 May 2015 22:10:23 +0200 Message-ID: <871tisi1xs.fsf@nicolasgoaziou.fr> References: <55452cc1.c28e440a.4541.ffff8b76@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqS6P-0006hT-L1 for emacs-orgmode@gnu.org; Thu, 07 May 2015 16:09:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqS6O-00016B-J9 for emacs-orgmode@gnu.org; Thu, 07 May 2015 16:09:01 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:48487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqS6O-000162-CT for emacs-orgmode@gnu.org; Thu, 07 May 2015 16:09:00 -0400 In-Reply-To: <55452cc1.c28e440a.4541.ffff8b76@mx.google.com> (Erik Hetzner's message of "Sat, 02 May 2015 12:59:40 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: John Wiegley , Org Mode Hello, Erik Hetzner writes: > The following patch fixes this issue. > > diff --git a/lisp/org-attach.el b/lisp/org-attach.el > index 1737ec1..b843d48 100644 > --- a/lisp/org-attach.el > +++ b/lisp/org-attach.el > @@ -276,7 +276,7 @@ the ATTACH_DIR property) their own attachment directory." > "Commit changes to git if `org-attach-directory' is properly initialized. > This checks for the existence of a \".git\" directory in that directory." > (let* ((dir (expand-file-name org-attach-directory)) > - (git-dir (vc-git-root dir)) > + (git-dir (expand-file-name ".git" (vc-git-root dir))) > (changes 0)) > (when (and git-dir (executable-find "git")) > (with-temp-buffer Thank you. Could you send it again using git format-patch, with a proper commit message? Regards, -- Nicolas Goaziou