Skip to content

Commit

Permalink
fix(github): loosen bulk changes error detection
Browse files Browse the repository at this point in the history
Fixes #24490
  • Loading branch information
rarkins committed Oct 7, 2023
1 parent 89c3eae commit 4288293
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/util/git/error.ts
Expand Up @@ -140,7 +140,5 @@ export function handleCommitError(
}

export function bulkChangesDisallowed(err: Error): boolean {
return err.message.includes(
'remote: Repository policies do not allow pushes that update more than'
);
return err.message.includes('update more than');
}

0 comments on commit 4288293

Please sign in to comment.