Running `glab ci run` runs on main branch instead of current branch

Summary

Running glab ci run runs on master branch (default gitlab branch) instead of current branch

Steps to reproduce

  • Create a gitlab pipeline
  • Checkout to some branch which is not your default branch (usually main)
  • Run glab ci run

What is the current bug behavior?

Runs pipeline on default branch instead of current branch

What is the expected correct behavior?

Everyone will expect the pipeline to run on the current branch when its not specified using -b flag