summaryrefslogtreecommitdiff
path: root/doc/bugs/content_not_present__58___cannot_lock.mdwn
blob: 89bf043959a11e573dab97aa9b0d2df2d51184dc (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
### Please describe the problem.
Cannot lock files which are not present.  This prevents converting v6 files from flat files to symlinks when they are missing.
If a file is not present, locking it should either replace it with a broken symlink, or continue on to the next file with a warning.

### What steps will reproduce the problem?
I think this happened from unlocking a file in one v6 repo and syncing with a different v6 repo, perhaps via a v5 repo in the middle.  In repo #2, the file became unlocked but missing for me.

### What version of git-annex are you using? On what operating system?
6.20160528-g191d2ba on linux

### Please provide any additional information below.

[[!format sh """

# I am trying to lock all files in my repo to downgrade from v6 back to v5, for stability

$ git annex lock
lock git/bup.git/bupindex.hlink git-annex: content not present; cannot lock

# but I cannot
"""]]

### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)

> Well, that was simply not implemented, but I've done so now. (unlocking
> too). [[done]] --[[Joey]]