summaryrefslogtreecommitdiff
path: root/doc/bugs/__171__uninit__187___on_direct_mode_repo_gives___171__removeLink:_permission_denied___40__Permission_denied__41____187__.mdwn
blob: b7dcf29b75fd27218cdc0a27de8e03b99a1f4839 (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
### Please describe the problem.

I suppose that in a direct mode repo, one might as well just «chmod -R
+w .git/annex; rm -r .git/annex», but I noticed that, when using «git
annex uninit», this will fail to remove some files in .git/annex.

### What steps will reproduce the problem?
[[!format sh """
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
$ mkdir /tmp/foo
$ cd /tmp/foo
$ git init
$ git annex init
$ echo quux > file
$ git annex add file
$ git annex sync
$ git annex uninit
unannex file ok
git-annex: /tmp/foo/.git/annex/objects/zQ/MQ/SHA256E-s3--98ea6e4f216f2fb4b69fff9b3a44842c38686ca685f3f55dc48c5d3fb1107be4/SHA256E-s3--98ea6e4f216f2fb4b69fff9b3a44842c38686ca685f3f55dc48c5d3fb1107be4.map: removeLink: permission denied (Permission denied)

# End of transcript or log.
"""]]


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

linux 3.15.5

### Please provide any additional information below.

> [[fixed|done]] --[[Joey]]