[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] org-attach.el: Get attachments from git annex
From: |
Erik Hetzner |
Subject: |
Re: [O] [PATCH] org-attach.el: Get attachments from git annex |
Date: |
Tue, 09 Feb 2016 13:12:07 -0800 |
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.1.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Hi Achim,
On Tue, 09 Feb 2016 11:40:54 -0800,
Achim Gratz <address@hidden> wrote:
>
> Erik Hetzner writes:
> > Sorry - I misunderstood how `org-test-for-executable' works. I’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/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.
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.
best, Erik
- [O] [PATCH] org-attach.el: Get attachments from git annex, Erik Hetzner, 2016/02/03
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Kyle Meyer, 2016/02/04
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Rasmus, 2016/02/06
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Erik Hetzner, 2016/02/07
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Achim Gratz, 2016/02/07
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Erik Hetzner, 2016/02/09
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Achim Gratz, 2016/02/09
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex,
Erik Hetzner <=
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Achim Gratz, 2016/02/09
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Erik Hetzner, 2016/02/10
- Re: [O] [PATCH] org-attach.el: Get attachments from git annex, Achim Gratz, 2016/02/11
- [O] [PATCH] testing/lisp/test-org-attach-annex.el: New file, Erik Hetzner, 2016/02/09
- Re: [O] [PATCH] testing/lisp/test-org-attach-annex.el: New file, Achim Gratz, 2016/02/14