replace hashes with branch names