From 4ea69a1438293a16ccba1208e02c87890a7d27f4 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 15 May 2021 13:11:04 +0200
Subject: [PATCH] fix(git): err.message typo

---
 lib/util/git/index.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts
index b141f09450..0f55698aeb 100644
--- a/lib/util/git/index.ts
+++ b/lib/util/git/index.ts
@@ -512,7 +512,7 @@ export async function isBranchModified(branchName: string): Promise<boolean> {
       ])
     ).trim();
   } catch (err) /* istanbul ignore next */ {
-    if (err.messages?.includes('fatal: bad revision')) {
+    if (err.message?.includes('fatal: bad revision')) {
       logger.debug(
         { err },
         'Remote branch not found when checking last commit author - aborting run'
-- 
GitLab