From da844dd13166b95235b6051956b4021f2190fa27 Mon Sep 17 00:00:00 2001
From: Hazel <hazel@farfrom.earth>
Date: Wed, 3 Jan 2024 14:41:59 +0000
Subject: [PATCH] fix: recurse submodules on cleanup

---
 src/git-command-manager.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index 7752cfa..c9b616b 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -471,7 +471,7 @@ class GitCommandManager {
   }
 
   async tryReset(): Promise<boolean> {
-    const output = await this.execGit(['reset', '--hard', 'HEAD'], true)
+    const output = await this.execGit(['reset', '--hard', '--recurse-submodules', 'HEAD'], true)
     return output.exitCode === 0
   }