fast-import: Fix crash when referencing already existing objects
commit20f546a86c5c673fc49050479a12edfb9f8672bf
authorSimon Hausmann <simon@lst.de>
Wed, 23 May 2007 21:01:49 +0000 (23 23:01 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 24 May 2007 03:36:47 +0000 (23 23:36 -0400)
tree9d5ddbe14658f5ba34e9c89efaf0a4f9ca8cf201
parentb259157f3c8705e0f775a3df2b33198499aede4f
fast-import: Fix crash when referencing already existing objects

Commit a5c1780a0355a71b9fb70f1f1977ce726ee5b8d8 sets the pack_id of existing
objects to MAX_PACK_ID. When the same object is referenced later again it is
found in the local object hash. With such a pack_id fast-import should not try
to locate that object in the newly created pack(s).

Signed-off-by: Simon Hausmann <simon@lst.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c