install_pmbootstrap: do not blindly fetch stable branches

Many forks only get the master branch, and fetching stable blindly results in CI errors like https://gitlab.postmarketos.org/WeirdTreeThing/pmaports/-/pipelines/221798 To avoid this issue, use the gitlab envvar to fetch the target branch of the MR, and only if it does not exist force it to be stable. This might not completely solve the issue, but it might limit it in most "normal" cases.

CC: @ollieparanoid @craftyguy @jane400

Merge request reports

Loading
Loading