Skip to content
  • Junio C Hamano's avatar
    pack-objects: re-validate data we copy from elsewhere. · df6d6101
    Junio C Hamano authored
    
    
    When reusing data from an existing pack and from a new style
    loose objects, we used to just copy it staight into the
    resulting pack.  Instead make sure they are not corrupt, but
    do so only when we are not streaming to stdout, in which case
    the receiving end will do the validation either by unpacking
    the stream or by constructing the .idx file.
    
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    df6d6101