git-annex/doc/internals/lockdown/comment_1_caa8b378e8c35177083e6cc2f6937180._comment
https://www.google.com/accounts/o8/id?id=AItOawnLM6CIUo2loSFNTLPDdBgAEoz9ehP2hz8 2bf81cefd1 Added a comment: Having the write bit not set can cause problems with automated usage (e.g. build systems)
2014-12-02 23:16:57 +00:00

15 lines
889 B
Text

[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawnLM6CIUo2loSFNTLPDdBgAEoz9ehP2hz8"
nickname="Duncan"
subject="Having the write bit not set can cause problems with automated usage (e.g. build systems)"
date="2014-12-02T23:16:57Z"
content="""
I'm using a git-annex to store build artefacts on a remote bare repo. Some of these artefacts are used in subsequent builds, which clone the artefacts repo, and use 'git annex get' to retrieve the artefacts of interest.
Unfortunately, I've had to add a little kludge along the following lines to my build script fragment:
git annex get ${file}
find .git/annex/objects -type d -exec chmod +w {} \;
This is necessary because I need to ensure that the cloned git repo is able to be deleted at all times (I'm using yocto/openembedded and it may want to delete the clone for a variety of reasons).
"""]]