Fix branch detection on Travis CI

[#69707496]