bugs/assistant doesn't sync empty directoriesgit-annexhttp://git-annex.branchable.com/bugs/assistant_doesn__39__t_sync_empty_directories/git-annexikiwiki2013-11-27T22:47:37Zcomment 1http://git-annex.branchable.com/bugs/assistant_doesn__39__t_sync_empty_directories/comment_1_78a3bde607f43c0f518bd2d3d7196022/joey2013-11-27T22:47:37Z2013-05-31T21:14:11Z
Git does not have a concept of an empty directory. The typical workaround is to put a .gitignore file in the directory.
comment 2http://git-annex.branchable.com/bugs/assistant_doesn__39__t_sync_empty_directories/comment_2_83777384b72732b1d0a19b32686d3d1f/Pedro2013-11-27T22:47:37Z2013-05-31T21:48:24Z
Adding .gitignore files makes sense for a git standpoint but whatever workaround is needed to make the assistant works properly should be done by the assistant itself no? Maybe having direct mode commit a shaddow ".this_is_a_magic_empty_file" in empty directories and then not actually writing that file into direct mode repositories on the other side.
comment 3http://git-annex.branchable.com/bugs/assistant_doesn__39__t_sync_empty_directories/comment_3_f9b2a700c060707fae1bcb2ec0e4e4dc/Nicolas2013-11-27T22:47:37Z2013-09-11T23:19:26Z
<p>This behaviour is indeed very confusing when one attempts to use git-annex with the assistant only, without thinking about the underlying machinery.
Having the assistant automatically put a .gitignore file in empty directories is a possible solution, but maybe printing a warning in the log when the watcher sees an empty directory could be an unobtrusive and helpful solution? (At least it would have helped me)</p>
comment 4http://git-annex.branchable.com/bugs/assistant_doesn__39__t_sync_empty_directories/comment_4_014d213a959dd7993bdd247722a8817e/Nicolas2013-11-27T22:47:37Z2013-09-11T23:24:58Z
Another problem with the current behaviour is that when deleting a directory and its contents on a repository, the contents are deleted on the other repositories but empty directories are left behind...
comment 5http://git-annex.branchable.com/bugs/assistant_doesn__39__t_sync_empty_directories/comment_5_440f349781d7d9ca2d1ed81386f7dd26/Adam2013-11-27T22:47:37Z2013-11-01T22:12:04Z
I agree that this is very confusing. Also having to manually delete empty, renamed directories is...less than ideal. <img src="http://git-annex.branchable.com/smileys/smile.png" alt=":)" />