import-zips: fix thinko
commit63801da88d8638eb6cf26d6305a721ad3731e216
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 29 Mar 2009 20:42:27 +0000 (29 22:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2009 02:56:26 +0000 (29 19:56 -0700)
tree9440c1c2fc847ed7841446ef627dc0f51c1575a1
parente8bd78c3fcba35b8344ea6bab6218b793e507ea3
import-zips: fix thinko

Embarrassingly, the common prefix calculation did not work properly, due
to a mistake in the assignment: instead of assigning the dirname of the
current file name, the dirname of the current common prefix needs to
be assigned to common prefix, when the current prefix does not match the
current file name.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/import-zips.py