f926718 Move up the check to skip the branch seen currently

Authored and Committed by pingou 8 years ago
    Move up the check to skip the branch seen currently