git-svn: make --repack work consistently between fetch and multi-fetch
commit2a3240beaad73dd86d9220c8a8a6e76c6d034a57
authorEric Wong <normalperson@yhbt.net>
Fri, 5 Jan 2007 02:09:56 +0000 (4 18:09 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 5 Jan 2007 06:28:46 +0000 (4 22:28 -0800)
treeaf8062160d919124c1fce9a4c1af400fd59727e1
parent0d313b2b7bb219542473a25ad042f4b990e69a45
git-svn: make --repack work consistently between fetch and multi-fetch

Since fetch reforks itself at most every 1000 revisions, we
need to update the counter in the parent process to have a
working count if we set our repack interval to be > ~1000
revisions.  multi-fetch has always done this correctly
because of an extra process; now fetch uses the extra process;
as well.

While we're at it, only compile the $sha1 regex that checks for
repacking once.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svn.perl