Merge pull request #4326 from libgit2/peff/binary-search-do-while sha1_position: convert do-while to while