def _need_branch_change(branch, local_branch):
    return branch is not None and branch != local_branch
If productversions is not a list, there will be a 500 error.
dataset/ETHPy150Open saltstack/salt/salt/states/git.py/_need_branch_change--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/model/core/api/test_product_resource.py/ProductResourceTest.test_productversion_for_create_must_be_list