diff --git a/bzr_commit_handler.py b/bzr_commit_handler.py
index <HASH>..<HASH> 100644
--- a/bzr_commit_handler.py
+++ b/bzr_commit_handler.py
@@ -756,6 +756,8 @@ class InventoryDeltaCommitHandler(GenericCommitHandler):
         self._add_entry((old_path, new_path, file_id, new_ie))
         self._modified_file_ids[new_path] = file_id
         self._paths_deleted_this_commit.discard(new_path)
+        if new_ie.kind == 'directory':
+            self.directory_entries[new_path] = new_ie
 
     def _rename_pending_change(self, old_path, new_path, file_id):
         """Instead of adding/modifying old-path, add new-path instead."""
Make sure renamed directories are found in file-id lookups