diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index f5ccf7b5f521ed..24367521cf13fe 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -397,7 +397,13 @@ export async function isBranchModified(branchName: string): Promise { } // Retrieve the author of the most recent commit const lastAuthor = ( - await git.raw(['log', '-1', '--pretty=format:%ae', `origin/${branchName}`]) + await git.raw([ + 'log', + '-1', + '--pretty=format:%ae', + `origin/${branchName}`, + '--', + ]) ).trim(); const { gitAuthorEmail } = config; if (