Похожие чаты

Hi all. i have a problem wth gitlab-ci. i have a

only: [merge-requests]
and i want to apply a git diff between the source and the target branches, to run pre-commit on it.
i tried something like
- export DIFFBRANCHES=$(git diff --name-only $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME $CI_MERGE_REQUEST_TARGET_BRANCH_NAME --)
- xargs pre-commit run --show-diff-on-failure --files ${DIFFBRANCHES}
but i have a `fatal: bad revision 'improvements/ci_diffing' [the $CI_MERGE_REQUEST_SOURCE_BRANCH_NAM]
any hint how to achieve that? this stuff driving me crazy

1 ответов

16 просмотров
Jimmies San-Down Under Автор вопроса

solved doing git remote update, git fetch and then checkout to the origin branches

Похожие вопросы

Обсуждают сегодня

Карта сайта