build: use clone instead of init for creating the builds commit changes (#45975)
build: use clone instead of init for creating the builds commit changes (#45975)

Rather than using git init to create an empty repo and then shallow fetch the
repo for a specific branch, we shallow clone the repository itself for the branch.
This prevents us from running into the issue of Github denying the push because it
comes from a shallow branch which does not map back to the repository.

PR Close #45975

angular-indonesia/angular,angular/angular,JiaLiPassion/angular,gkalpak/angular,angular/angular,JiaLiPassion/angular,gnomeontherun/angular,JiaLiPassion/angular,angular-indonesia/angular,gnomeontherun/angular,angular/angular,gkalpak/angular,angular/angular,angular-indonesia/angular,gkalpak/angular,JiaLiPassion/angular,angular-indonesia/angular,gnomeontherun/angular,gkalpak/angular,gnomeontherun/angular