Closed rarkins closed 2 months ago
I have not reproduced this, and don't have time to fix, but based on code review I suspect this to be the case.
Example of normal git push checking getNoVerify(): https://github.com/renovatebot/renovate/blob/36091fd9f817b37addb3cb7d89229222d790543e/lib/util/git/index.ts#L1092-L1107
deleteBranch() not checking it: https://github.com/renovatebot/renovate/blob/36091fd9f817b37addb3cb7d89229222d790543e/lib/util/git/index.ts#L767-L770
Discussed in https://github.com/renovatebot/renovate/discussions/29468
Logs
``` INFO: Deleting orphan branch (repository=my-project/my-apps, branch=renovate/babel-eslint-replacement) DEBUG: Git function thrown (repository=my-project/my-apps) "err": { "task": { "commands": [ "push", "--delete", "origin", "renovate/babel-eslint-replacement" ], "format": "utf-8", "parser": "[function]" }, "message": "husky - pre-push hook exited with code 1 (error)\n\nnode:internal/process/esm_loader:40\n internalBinding('errors').triggerUncaughtException(\n ^\nError: Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.\n\nMissing package: lint-staged@npm:13.2.0\nExpected package location: /tmp/renovate/repos/azure/my-project/my-apps/.yarn/cache/lint-staged-npm-13.2.0-204330f6dc-dcaa8fbbde.zip/node_modules/lint-staged/\n\n at makeError (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:50643:34)\n at resolveUnqualified (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:52157:17)\n at resolveRequest (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:52209:14)\n at Object.resolveRequest (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:52265:26)\n at resolve$1 (file:///tmp/renovate/repos/azure/my-project/my-apps/.pnp.loader.mjs:1991:25)\n at nextResolve (node:internal/modules/esm/hooks:864:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:302:30)\n at MessagePort.handleMessage (node:internal/modules/esm/worker:196:24)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20)\n at exports.emitMessage (node:internal/per_context/messageport:23:28)\n\nNode.js v18.20.3\nerror: failed to push some refs to 'https://dev.azure.com/my-org/my-project/_git/my-apps'\n", "stack": "Error: husky - pre-push hook exited with code 1 (error)\n\nnode:internal/process/esm_loader:40\n internalBinding('errors').triggerUncaughtException(\n ^\nError: Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.\n\nMissing package: lint-staged@npm:13.2.0\nExpected package location: /tmp/renovate/repos/azure/my-project/my-apps/.yarn/cache/lint-staged-npm-13.2.0-204330f6dc-dcaa8fbbde.zip/node_modules/lint-staged/\n\n at makeError (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:50643:34)\n at resolveUnqualified (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:52157:17)\n at resolveRequest (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:52209:14)\n at Object.resolveRequest (/tmp/renovate/repos/azure/my-project/my-apps/.pnp.cjs:52265:26)\n at resolve$1 (file:///tmp/renovate/repos/azure/my-project/my-apps/.pnp.loader.mjs:1991:25)\n at nextResolve (node:internal/modules/esm/hooks:864:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:302:30)\n at MessagePort.handleMessage (node:internal/modules/esm/worker:196:24)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20)\n at exports.emitMessage (node:internal/per_context/messageport:23:28)\n\nNode.js v18.20.3\nerror: failed to push some refs to 'https://dev.azure.com/my-org/my-project/_git/my-apps'\n\n at Object.action (/home/vsts/.npm/_npx/05eeecd92f4e18e0/node_modules/simple-git/src/lib/plugins/error-detection.plugin.ts:42:29)\n at PluginStore.exec (/home/vsts/.npm/_npx/05eeecd92f4e18e0/node_modules/simple-git/src/lib/plugins/plugin-store.ts:54:29)\n at /home/vsts/.npm/_npx/05eeecd92f4e18e0/node_modules/simple-git/src/lib/runners/git-executor-chain.ts:124:42\n at new Promise (