aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Getting_metadata.mdwn
blob: 1f6f91fc71c1c184dd9345e717679f3a5e950b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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!