Updated test for new is_on_git format
Changing syntax style of `if`