From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] org-attach.el: Get attachments from git annex Date: Tue, 09 Feb 2016 23:19:25 +0100 Message-ID: <87twlh1q8i.fsf@Rainer.invalid> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTGdM-0007Ps-Kq for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 17:19:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTGdH-0002E5-IZ for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 17:19:44 -0500 Received: from plane.gmane.org ([80.91.229.3]:55651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTGdH-0002DI-BT for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 17:19:39 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aTGdF-0001Qy-AS for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 23:19:37 +0100 Received: from p54b4660e.dip0.t-ipconnect.de ([84.180.102.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2016 23:19:37 +0100 Received: from Stromeko by p54b4660e.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2016 23:19:37 +0100 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: emacs-orgmode@gnu.org Erik Hetzner writes: > 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/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447/ > 0444 > /tmp/tmp-orgtest/org-annex-test19785b6F/.git/annex/objects/jm/P2/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447 > > I presume this is to maintain the integrity of the file contents in the > repository. Oh my, they even think it's a feature. :-( https://git-annex.branchable.com/internals/lockdown/ Those shenanigans with symbolic links are a bit cumbersome. > It would be possible to drop these files after the test (using git annex drop > --force), but if something goes wrong there the rm -rf would not clean up the > test directory properly. If you think that is a better solution I can do that. 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) $(testdir) } which of course requires the addition of CHMOD = chmod in mk/defaults.mk. 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? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds