Created by: koenpunt
As the title says, using discover_default_branch to determine the root_ref
discover_default_branch
root_ref
Fixes #2217 (closed)