git-svn: fix some potential bugs with --follow-parent
commit2e5e24803fc92a1da5b941495dc22f888fc612b6
authorEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 10:21:59 +0000 (23 02:21 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 10:21:59 +0000 (23 02:21 -0800)
tree362748d3d28baabaed9abb7472e69925268ee53a
parente2c475d91cc65b110a20c9836142a4a7e608a87c
git-svn: fix some potential bugs with --follow-parent

When using do_switch:

  We only need to ensure the index is clean and set to that of the
  parent tree) we rely on being able to reconstruct full files
  with deltas transferred over the network.

When using do_update:

  We may safely unlink the index if we are fetching an entire
  new tree with do_update.  Having an old index (from a
  previously deleted/abandoned directory) around can cause
  irrelevant files to be mistakenly kept.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl