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: Wed, 10 Feb 2016 18:24:05 -0800 Message-ID: <56bbf0c8.65e8420a.969f6.ffffdbbe@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> <56ba5628.170a620a.fb60e.ffffbb94@mx.google.com> <87twlh1q8i.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]:59964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTgvX-0005NM-7X for emacs-orgmode@gnu.org; Wed, 10 Feb 2016 21:24:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTgvS-0002mM-BA for emacs-orgmode@gnu.org; Wed, 10 Feb 2016 21:24:15 -0500 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:36726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTgvR-0002mH-Vh for emacs-orgmode@gnu.org; Wed, 10 Feb 2016 21:24:10 -0500 Received: by mail-pf0-x234.google.com with SMTP id e127so21643619pfe.3 for ; Wed, 10 Feb 2016 18:24:09 -0800 (PST) In-Reply-To: <87twlh1q8i.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 14:19:25 -0800, Achim Gratz wrote: > > > [=E2=80=A6] > > Well, the best solution would be to have an option for git-annex to > switch off that lockdown thing. Since that's not going to happen soon > or anytime, try something like: > > $(RMR) $(testdir) || { $(CHMOD) -R u+w $(testdir); $(RMR) $(testd= ir) } > > which of course requires the addition of > > CHMOD =3D chmod > > in mk/defaults.mk. Can you explain how this improves on what I had? The time spent appears to = be the same on my system (tested after clearing the filesystem cache): $ time /bin/sh -c "if [ -d /tmp/tmp-orgtest/ ] ; then chmod u+w -R /tmp/tmp= -orgtest/ ; fi ; rm -rf /tmp/orbit-egh/" real 0m0.219s user 0m0.004s sys 0m0.000s $ time /bin/sh -c "rm -rf /tmp/tmp-orgtest || { chmod -R u+w /tmp/tmp-orgte= st; rm -rf /tmp/tmp-orgtest ; }" rm: cannot remove =E2=80=98/tmp/tmp-orgtest/org-annex-test11629xxf/.git/ann= ex/objects/jm/P2/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1= ec0fb85d299a192a447/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd= 2a1ec0fb85d299a192a447=E2=80=99: Permission denied rm: cannot remove =E2=80=98/tmp/tmp-orgtest/org-annex-test11629knZ/.git/ann= ex/objects/jm/P2/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1= ec0fb85d299a192a447/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd= 2a1ec0fb85d299a192a447=E2=80=99: Permission denied real 0m0.240s user 0m0.000s sys 0m0.012s > But it seems that direct mode (however deprecated it is) would allow us > to do exactly the thing we want, so maybe if the tests would put that > repo in direct mode we wouldn't even need to do that. But that doesn't > seem to work in a v6 repo unless annex.thin is set to true. What version > are you testing? git-annex version: 5.20150731-1build1. In any case, direct mode is a rather different use case, as I understand it. best, Erik