hide dotfiles from search results by default

This commit is contained in:
ed
2023-01-31 18:13:33 +00:00
parent 6d1d3e48d8
commit e413007eb0
5 changed files with 19 additions and 4 deletions

View File

@@ -3355,7 +3355,7 @@ class HttpCli(object):
if not self.args.no_readme and not logues[1]:
for fn in ["README.md", "readme.md"]:
fn = os.path.join(abspath, fn)
if bos.path.exists(fn):
if bos.path.isfile(fn):
with open(fsenc(fn), "rb") as f:
readme = f.read().decode("utf-8")
break