[patch] git: fix overflow in update-cache.c