templates / branches--on commit pack-objects: move compression code in a separate function (30ebb40)
   1: this is just to ensure the directory exists.