fix(repository): make sure to call not found handler when repository does not exists
+ 4
- 0
in "getRepositoryDetailsView" controller/request handler

app/controllers/repository/getRepositoryDetailsView.ts
@@ -60,6 +60,10 @@ const getRepositoryDetailsView: ReqHandler = async (request, reply) => {
           repoFiles: [],
         }
       );
+    } else if (
+      error.message.includes("Could not find a valid git repository")
+    ) {
+      return reply.status(404).callNotFound();
     } else {
       throw err;
     }