From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: [PATCH] org-attach.el: Get attachments from git annex Date: Tue, 09 Feb 2016 13:12:07 -0800 Message-ID: <56ba5628.170a620a.fb60e.ffffbb94@mx.google.com> References: <568b532e.d111620a.b25a8.ffffbb7c@mx.google.com> <87poxg8s22.fsf@kyleam.com> <568c6aaa.c345620a.7f4da.6359@mx.google.com> <56a5b193.ca77420a.1551e.667c@mx.google.com> <87lh7dz79f.fsf@gmx.us> <56a70513.6861420a.33633.5843@mx.google.com> <87egd4u6tq.fsf@kyleam.com> <56a7a139.885d620a.6b777.576d@mx.google.com> <87io2gb5xh.fsf@kyleam.com> <87oac8hu9p.fsf@gmx.us> <56a87251.0e2a620a.4811f.fffff1c6@mx.google.com> <87lh79t04p.fsf@kyleam.com> <56b2c213.08e5420a.3d619.ffffd033@mx.google.com> <87oabu3uc0.fsf@gmx.us> <56b77bb8.9447620a.f3b5a.1c05@mx.google.com> <87io20qmaz.fsf@Rainer.invalid> <56b97846.594b620a.c8dc8.ffff8edc@mx.google.com> <8737t13c55.fsf@Rainer.invalid> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTFa5-0000bN-St for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 16:12:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTFZz-00010w-7r for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 16:12:14 -0500 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:34884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTFZy-000107-Sz for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 16:12:11 -0500 Received: by mail-pa0-x229.google.com with SMTP id ho8so97118305pac.2 for ; Tue, 09 Feb 2016 13:12:10 -0800 (PST) In-Reply-To: <8737t13c55.fsf@Rainer.invalid> 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: Achim Gratz Cc: emacs-orgmode@gnu.org Hi Achim, On Tue, 09 Feb 2016 11:40:54 -0800, Achim Gratz wrote: > > Erik Hetzner writes: > > Sorry - I misunderstood how `org-test-for-executable' works. I=E2=80=99= ll fix the issue. > > Thanks. > > > As for the rm -rf, it does not work in the way you suggest, at least on= ubuntu > > GNU/Linux. Here is the result I get locally without the chmod: > > For pete's sake, what are the permissions? As I said, the only reason I > see that is happening is if the directory containing the files is mode > 55x. And that would either be spectactularly stupid or exceptionally > clever, although I tend toward the first interpretation. In any case, > you'd need to make the directories writable to fix this, but not the > files. There might be a config option that you could/should set to > avoid this bit of cleverness or nuisance by git-annex.. Here are the permissions: 0755 /tmp/tmp-orgtest/ 0700 /tmp/tmp-orgtest/org-annex-test19785b6F/ 0775 /tmp/tmp-orgtest/org-annex-test19785b6F/.git/ 0775 /tmp/tmp-orgtest/org-annex-test19785b6F/.git/annex/ 0775 /tmp/tmp-orgtest/org-annex-test19785b6F/.git/annex/objects/ 0775 /tmp/tmp-orgtest/org-annex-test19785b6F/.git/annex/objects/jm/ 0775 /tmp/tmp-orgtest/org-annex-test19785b6F/.git/annex/objects/jm/P2/ 0555 /tmp/tmp-orgtest/org-annex-test19785b6F/.git/annex/objects/jm/P2/SHA25= 6E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447/ 0444 /tmp/tmp-orgtest/org-annex-test19785b6F/.git/annex/objects/jm/P2/SHA25= 6E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447/SH= A256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447 I presume this is to maintain the integrity of the file contents in the repository. It would be possible to drop these files after the test (using git annex dr= op --force), but if something goes wrong there the rm -rf would not clean up t= he test directory properly. If you think that is a better solution I can do th= at. best, Erik