Why pipeline fetching wrong branch?

I have two branches “main” and “develop”, pipeline triggered by commit into “main”
but in runner it fetching “develop” branch.
“main” is default and both are protected how I can choose to fetch only “main” branch?

Hi @rst630 this sounds strange! What’s in your .gitlab-ci.yml?