templates / branches--on commit read_packed_refs(): make parsing of the header line more robust (a881169)
   1: this is just to ensure the directory exists.