upload-pack: generalize commit date cutoff