Clone git repositories on their own default branch (#10141)