summaryrefslogtreecommitdiff
path: root/doc/bugs/unannex_removes_object_even_if_referred_to_by_others.mdwn
blob: 69a4496fefbdd185d2b67f14925a36a706a81e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
##What steps will reproduce the problem?

    echo text > foo
    echo text > bar
    git annex add foo bar
    git annex unannex foo

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

I would expect that the object behind 'bar' remained intact, what happens is that the object is moved out of the annex and 'bar' is left as a dangling symlink, if you are unlucky and don't spot this, it could be potentially dangerous, since you can easily lose data.

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

git-annex built from git on Tue Mar 12 15:58:36 2013 -0400

From commit: 70b7555eaf9ac5f88bb137985d93bed8d5a434e8

On Debian Sid