vcs-svn: fix intermittent repo_tree corruption
commitbb5e3528b0c7df78b967ffcce4c63750ab3c2b3d
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 5 Dec 2010 09:32:53 +0000 (5 03:32 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Dec 2010 00:04:02 +0000 (7 16:04 -0800)
treeb9e04019fe11573af4633c3acf0ed85226aff9a7
parentff052b0e1e8219c372a7286a2af42ef51dfdc756
vcs-svn: fix intermittent repo_tree corruption

Pointers to directory entries do not remain valid after a call to
dent_insert.

Noticed in the course of importing a small Subversion repository
(~1000 revs); after setting up a dirent for a certain path as a
placeholder, by luck dent_insert would trigger a realloc that
shifted around addresses, resulting in an import with that file
replaced by a directory.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
repo_tree.c