diff --git a/dist/index.js b/dist/index.js
index ddf2b3d..6090c7f 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -841,7 +841,7 @@ class GitCommandManager {
     }
     tryReset() {
         return __awaiter(this, void 0, void 0, function* () {
-            const output = yield this.execGit(['reset', '--hard', 'HEAD'], true);
+            const output = yield this.execGit(['reset', '--hard', '--recurse-submodules', 'HEAD'], true);
             return output.exitCode === 0;
         });
     }