Skip to content

fix `mr merge` failing on detached branch

Clement Sam requested to merge fix-merge-detached-branch into trunk

mr merge fails with error could not determine current branch: git: not on any branch when run on a detached branch.

This is due to glab fetching the current branch first before checking if a merge request ID was provided as argument.

Resolves #735 (closed)

Merge request reports