git-annex/doc/forum/Getting_metadata.mdwn
https://openid-provider.appspot.com/ndurner@1a2a109daa9ab9880e5c3265d0a7604b0c281614 279313c19d
2015-11-01 12:34:16 +00:00

30 lines
609 B
Markdown

Hi!
what's wrong here with getting metadata back:
# setup
$ git init .
$ git annex init
init ok
(Recording state in git...)
$ touch testfile
$ git add testfile
$ git commit -m "imp"
[master (Basis-Commit) 55c385e] imp
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 testfile
# set metadata
$ git annex metadata testfile --set key=val
# retrieval doesn't work
$ git annex metadata testfile --get key
$ git annex metadata testfile
$
What I would expect here is to get "val" back.
What am I doing wrong?
Thanks!