aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/unannex_removes_object_even_if_referred_to_by_others.mdwn
blob: 874e5c27f427ce452727666260f44100af8cf103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
##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

> [[done]]; duplicate bug report