summaryrefslogtreecommitdiff
path: root/doc/bugs/Unable_to_switch_back_to_direct_mode.mdwn
diff options
context:
space:
mode:
authorGravatar http://identi.ca/cwebber/ <cwebber@web>2013-04-29 01:46:23 +0000
committerGravatar admin <admin@branchable.com>2013-04-29 01:46:23 +0000
commite6cf3a9ef3671bf9ff00830385d428c1342f9f79 (patch)
treeb4d4348e77618b8f50150f883c259c06308c9b22 /doc/bugs/Unable_to_switch_back_to_direct_mode.mdwn
parenta247478bff6e1aa039331f8081cc5290b0975518 (diff)
Diffstat (limited to 'doc/bugs/Unable_to_switch_back_to_direct_mode.mdwn')
-rw-r--r--doc/bugs/Unable_to_switch_back_to_direct_mode.mdwn54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/bugs/Unable_to_switch_back_to_direct_mode.mdwn b/doc/bugs/Unable_to_switch_back_to_direct_mode.mdwn
new file mode 100644
index 000000000..73c2b3f0c
--- /dev/null
+++ b/doc/bugs/Unable_to_switch_back_to_direct_mode.mdwn
@@ -0,0 +1,54 @@
+### Please describe the problem.
+
+I seem to be unable to switch back and forth between git annex direct and git annex indirect mode in one of my repositories. I can in others just fine.
+
+### What steps will reproduce the problem?
+
+In the broken repository I can do:
+
+ cwebber@earlgrey:~/gfx-proj/mediagoblin_vid$ git annex direct
+ commit
+ add audio/part2.aup (checksum...) ok
+ ok
+ add images/campaign.png (checksum...) ok
+ ok
+ add images/transifex.png (checksum...) ok
+ ok
+ add script-lines.txt (checksum...) ok
+ ok
+ add vid_pitch.blend (checksum...) ok
+ ok
+ (Recording state in git...)
+ [master 9f13dc0] commit before switching to direct mode
+ 1 file changed, 145 insertions(+), 1 deletion(-)
+ rewrite audio/part2.aup (100%)
+ mode change 120000 => 100644
+ ok
+ direct gavroche-vid-shot.blend
+ git-annex: /home/cwebber/gfx-proj/mediagoblin_vid/.git/annex/objects/3M/mx/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f: rename: permission denied (Permission denied)
+ failed
+ git-annex: direct: 1 failed
+
+looking at the files:
+
+ cwebber@earlgrey:~/gfx-proj/mediagoblin_vid$ ls -l gavroche-vid-shot.blend
+ lrwxrwxrwx 1 cwebber cwebber 190 Apr 28 18:27 gavroche-vid-shot.blend -> .git/annex/objects/3M/mx/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f
+ cwebber@earlgrey:~/gfx-proj/mediagoblin_vid$ ls -l .git/annex/objects/3M/mx/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f
+ -rw-r--r-- 1 cwebber cwebber 2935980 Apr 28 18:27 .git/annex/objects/3M/mx/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f/SHA256E-s2935980--3a1c838333a4a0ee1eaa837c3f08a910d3f29fc60baf41affd936fbefe11111f
+ cwebber@earlgrey:~/gfx-proj/mediagoblin_vid$
+
+... it looks like these permissions should be fine!
+
+Some notable things:
+
+* I believe Blender wrote directly to a file that was in "locked" somehow, despite it being in that state. It may have actually followed the symlink and overwritten that file, I'm not sure.
+* However, the file that git-annex is now reporting with "permission denied" is not the one it did previously... I did git checkout -- on all the files, switched them over, and it's a different set of broken things now!
+* It's actually easy enough to fix... in fact, I did fix it! I just did a fresh clone of the git repository and a git annex get and everything is fine now. However, it seemed like possibly a bug that might hit other people, hence my reporting it.
+
+### What version of git-annex are you using? On what operating system?
+
+git annex version 4.20130417 on debian wheezy
+
+### Please provide any additional information below.
+
+