mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 23:11:31 +00:00
30ddfe3d3e
Noticed when attempting to run Renovate against an empty repository (on
`platform=bitbucket`) we previously saw:
WARN: Host error (repository=jamie-tanna-mend-1/test-any-updates)
"hostType": "git",
"packageName": undefined,
"err": {
"task": {
"commands": [
"clone",
"-b",
"main",
"--filter=blob:none",
{
"0": "h",
"1": "t",
"2": "t",
"3": "p",
...
"281": "i",
"282": "t"
},
{"0": "."}
],
"format": "utf-8",
"parser": "[function]"
},
"message": "Cloning into '.'...\nfatal: Remote branch main not found in upstream origin\n",
"stack": "..."
We can instead match against the case where it's a `String` object, and
forcibly return the `sanitized`'d value.
Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>