Drone/git could not clone the code

it should add remote first and then fetch, but actually just fetch.

drone2 + docker-runner

The git clone step always executes git init and git remote add (see the code at https://github.com/drone/drone-git/blob/master/posix/clone-commit#L9:L10) but it does not print these to the console because set -x is not set until later in the script.

but i had the main branch, why it can’t find remote main?