summaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_fix_not_noticing_file_renames.mdwn
blob: a68533980eb221cfd4922e24c91953b2d73380e4 (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
31
32
33
34
35
36
What steps will reproduce the problem?

    ~$ mkdir testannex
    ~$ cd testannex/
    testannex$ git init
    Initialized empty Git repository in /Users/ed/testannex/.git/
    testannex$ git annex init "test annex"
    init test annex ok
    (Recording state in git...)
    testannex$ echo "file1" > file1
    testannex$ git annex add file1
    add file1 (checksum...) ok
    (Recording state in git...)
    testannex$ mkdir directory
    testannex$ mv file1 directory/
    testannex$ cat directory/file1 
    cat: directory/file1: No such file or directory
    testannex$ git annex fix directory/file1
    git-annex: directory/file1 not found


What is the expected output? What do you see instead?

    git annex fix should fix the symlink.  It looks like maybe it's *following* the symlink?

What version of git-annex are you using? On what operating system?

    checkout:  20d195f   compiled on OS X 10.7 using cabal.  

Please provide any additional information below.

    git annex assistant is not noticing file renames either.

> git-annex commands (other than `git annex add`) only operate on files
> checked into git, which `directory/file1` is not, since you did not use
> `git mv`. Once you `git add` the file, it'll work. [[done]] --[[Joey]]