Commit 0da7f06c authored by Kevin Daudt's avatar Kevin Daudt

changed-aports: fetch the basebranch from the correct upstream repo

origin does not necessarily point to the upstream repo. Gitlab provides
a variables called `$CI_MERGE_REQUEST_PROJECT_URL` which can be used to
fetch from upstream.
parent 7bcf2e92
Pipeline #566 failed with stages
in 1 minute and 6 seconds
......@@ -14,7 +14,7 @@ basebranch=$1
if ! git rev-parse --verify --quiet $basebranch >/dev/null; then
# The base branch does not eixst, probably due to a shallow clone
git fetch origin refs/heads/$basebranch:refs/heads/$basebranch
git fetch -v $CI_MERGE_REQUEST_PROJECT_URL.git +refs/heads/$basebranch:refs/heads/$basebranch
git --no-pager diff --diff-filter=ACMR --name-only $basebranch...HEAD -- "*/APKBUILD" | xargs -r -n1 dirname
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment