Files
renovate/lib/logger
Jamie Tanna 30ddfe3d3e chore(logger): sanitize boxed String objects (#42159)
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>
2026-03-26 17:31:32 +00:00
..