From a67760faf9aa68e4a7dd8077768df0b3279c9989 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnSenxKyE_2Z6Wb-EBMO8FciyRywjx1ZiQ" Date: Sat, 13 Apr 2013 02:40:30 +0000 Subject: [PATCH] --- ...aviour_of_direct_and_indirect_annexes.mdwn | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 doc/bugs/Weird_behaviour_of_direct_and_indirect_annexes.mdwn diff --git a/doc/bugs/Weird_behaviour_of_direct_and_indirect_annexes.mdwn b/doc/bugs/Weird_behaviour_of_direct_and_indirect_annexes.mdwn new file mode 100644 index 0000000000..b8d2a441d9 --- /dev/null +++ b/doc/bugs/Weird_behaviour_of_direct_and_indirect_annexes.mdwn @@ -0,0 +1,46 @@ +## What steps will reproduce the problem? + + ~$ git annex webapp + + +* Add Another Local Repository (~/Direct) "Direct", keep separate (from existing repo) no repo type +* Add Repository, ~/Indirect "Indirect", combine (with Direct) , repo type client +* Syncing enabled on both + +Then + + ~/Indirect$ git annex indirect + commit ok + indirect ok + ok + ~/Indirect$ touch ../Direct/Test.File + + +## What is the expected output? What do you see instead? + +That ~/Indirect/Test.File be a symlink into .git/annex/objects/....... + +Instead, it is not a symlink. However, doing + + ~/Indirect$ git annex direct + ~/Indirect$ git annex indirect + +results in what I would expect (until the content of Direct/Test.File is changed, when it ceases to be a symlink in ~/Indirect once more) + +## What version of git-annex are you using? On what operating system? +git-annex version: 4.20130405 + +Ubuntu 12.10 + + +## Please provide any additional information below. + +Reading [[direct_mode]], I thought that I could have two repos on my computer, one direct, and one indirect, and if running the assistant, that I could gain the security of retaining old versions, as well as the convenience of direct mode. (I think I understand that correctly; if a direct-mode file only exists in one repository, and is edited, the old version is lost, but if it is in multiple repos, then the old versions will be retained). + +It seems to me that if I do + + ~/Direct$ echo Content > Test.File + ~/Direct$ echo More Content > Test.File + ~/Direct$ echo Even More Content > Test.File + +that all three copies are stored in ~/Indirect, so the functionality I'm after seems to work. However, ~/Indirect/Test.File ends up not being a symlink, which I think is odd/unexpected.