dulwich
dulwich copied to clipboard
`index.build_index_from_tree` doesn't remove files from index
Hi, this is somehow related to #588 and causes the reset to not work at least in some circumstances.
The method index.build_index_from_tree first initializes the index from the current index file and then adds the files that are in the referenced tree. However if the referenced tree has less files - they are not deleted from the index and the index is not reset correctly.
BR
Andrzej
reset should probably use a different call - build_index_from_tree is meant for fresh checkouts.