The Docker container has no git auth credentials. Instead of trying to fetch (which silently fails), first check if origin/main already exists from a workflow pre-step. Only fall back to fetching if no refs are found, with a clear error message telling users to add a pre-fetch step.