git-annex/doc/bugs/Direct_mode_keeps_re-checksuming_duplicated_files.mdwn

26 lines
796 B
Text
Raw Normal View History

2013-03-11 06:08:23 +00:00
##What steps will reproduce the problem?
mkdir test
git init
git annex init "test"
echo "test" > a
echo "test" > b
git annex add a b
git annex sync
git annex direct
git annex sync | grep add
git annex sync | grep add
##What is the expected output? What do you see instead?
The last two syncs shouldn't need to add or checksum anything.
Firstly, the output is very confusing because the files have already been added.
Secondly, the sync can take quite a while if you have lots of duplicates or a lot of files that are incidentally similar.
##What version of git-annex are you using? On what operating system?
git-annex version: 4.20130227 on Archlinux
> [[done]]; fixed inode caching code to support multiple files for the
> same content. --[[Joey]]