support git files as input to computations
Using GIT keys, like are used when exporting git files to special remotes. Except here the GIT key refers to a file checked into the git repo. Note that, since the compute remote uses catObject to get the content, a symlink that is checked into git does not get followed. This is important for security, because following a symlink and adding the content to the repo as an annex object would allow exfiltrating content from outside the repository. Instead, the behavior with a symlink is to run the computation on the symlink target. This may turn out to be confusing, and it might be worth addcomputed checking if the file in git is a symlink and erroring out. Or it could follow symlinks as long as the destination is a file in the repisitory.
This commit is contained in:
parent
6ebab7fb00
commit
a0d6a6ea2a
5 changed files with 56 additions and 31 deletions
|
@ -8,8 +8,8 @@ git annex addcomputed `--to=remote -- ...`
|
|||
|
||||
# DESCRIPTION
|
||||
|
||||
Adds files to the annex that are computed from input files,
|
||||
using a compute special remote.
|
||||
Adds files to the annex that are computed from input files in the
|
||||
repository, using a compute special remote.
|
||||
|
||||
Once a file has been added to a compute remote, commands
|
||||
like `git-annex get` will use it to compute the content of the file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue