diff options
author | Nick <nick.guenther@polymtl.ca> | 2023-04-10 23:00:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 23:00:19 -0400 |
commit | ef7fd781f5f5f5812a8a947845afac7a1dba4886 (patch) | |
tree | d8924179d2a1c3e4cd790c51b63cc1410293e978 /tests/integration/repo_test.go | |
parent | b7b887ba002e9eccf16a575ce93d91189e6ae4fb (diff) | |
download | gitea-ef7fd781f5f5f5812a8a947845afac7a1dba4886.tar.gz gitea-ef7fd781f5f5f5812a8a947845afac7a1dba4886.zip |
Avoid recursing into sub-sub-sub-docs folders when looking for READMEs. (#23695)
Fixes a bug introduced in https://github.com/go-gitea/gitea/pull/22177
which allows finding READMEs like
docs/docs/docs/.gitea/.github/docs/README.md
Fixes https://github.com/go-gitea/gitea/issues/23694
Diffstat (limited to 'tests/integration/repo_test.go')
-rw-r--r-- | tests/integration/repo_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go index 5ddedfcf36..f03a3b37fd 100644 --- a/tests/integration/repo_test.go +++ b/tests/integration/repo_test.go @@ -361,7 +361,7 @@ func TestViewRepoDirectoryReadme(t *testing.T) { } missing("sp-ace", "/user2/readme-test/src/branch/sp-ace/") missing("nested-special", "/user2/readme-test/src/branch/special-subdir-nested/subproject") // the special subdirs should only trigger on the repo root - // missing("special-subdir-nested", "/user2/readme-test/src/branch/special-subdir-nested/") // This is currently FAILING, due to a bug introduced in https://github.com/go-gitea/gitea/pull/22177 + missing("special-subdir-nested", "/user2/readme-test/src/branch/special-subdir-nested/") missing("symlink-loop", "/user2/readme-test/src/branch/symlink-loop/") } |