chore(deps): remove useless git-http-backend dependency
+ 6
- 13
app/controllers/repository/getRepositoryBrowserView.ts
@@ -43,13 +43,14 @@ const getRepositoryBrowserView: ReqHandler = async (request, reply) => {
   if (path.endsWith("/")) {
     const readmeFiles = await repoService.isFileInRepositoryPath(
       repo,
-      "",
-      Const.README_FILE_NAMES
+      path,
+      Const.README_FILE_NAMES,
+      ref
     );
 
     const readmeFileContent =
       readmeFiles.length >= 1
-        ? await repoService.getRepositoryFileContent(repo, readmeFiles[0])
+        ? await repoService.getRepositoryFileContent(repo, readmeFiles[0], ref)
         : null;
 
     return reqHandler<RepositoryDetailsViewProps>(RepositoryDetailsView.name, {

@@ -40,7 +40,6 @@
     "dotenv-flow": "^3.2.0",
     "fastify": "^3.27.4",
     "fastify-static": "^4.6.1",
-    "git-http-backend": "^1.1.2",
     "gray-matter": "^4.0.3",
     "language-detect": "^1.1.0",
     "language-map": "^1.5.0",

@@ -2346,14 +2346,7 @@ get-symbol-description@^1.0.0:
     call-bind "^1.0.2"
     get-intrinsic "^1.1.1"
 
-git-http-backend@^1.1.2:
-  version "1.1.2"
-  resolved "https://registry.yarnpkg.com/git-http-backend/-/git-http-backend-1.1.2.tgz#fb6c7b261251df8c2bdf9dc30876a96ce323f545"
-  dependencies:
-    git-side-band-message "~0.0.3"
-    inherits "~2.0.1"
-
-git-side-band-message@^0.0.3, git-side-band-message@~0.0.3:
+git-side-band-message@^0.0.3:
   version "0.0.3"
   resolved "https://registry.yarnpkg.com/git-side-band-message/-/git-side-band-message-0.0.3.tgz#b8a5348c2dcbf1949fd295c506014e26c3f26a46"
 

...
@@ -2602,7 +2595,7 @@ inflight@^1.0.4:
     once "^1.3.0"
     wrappy "1"
 
-inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3:
+inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@~2.0.3:
   version "2.0.4"
   resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"