diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-10-08 19:53:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 13:53:54 -0400 |
commit | 245596e13048e7fe8c7a0933b95a0c4208760daf (patch) | |
tree | c49259dccaa70121dc66b18c9e29ef2e2b43e339 /contrib/k8s | |
parent | 1c3ae6d05e6099d30f61a9057d8e12cdfc80975d (diff) | |
download | gitea-245596e13048e7fe8c7a0933b95a0c4208760daf.tar.gz gitea-245596e13048e7fe8c7a0933b95a0c4208760daf.zip |
don't try to interpret treepath as hash (#17272)
...when path contains no hash-path-separator ('/')
This is a workaround to #17179.
Entering this case when `path` does not contain a '/' does not really
make sense, as that means the tree path is empty, but this case is only
entered for routes that expect a non-empty tree path.
Treepaths like <40-char-dirname>/<filename> will still fail,
but hopefully don't occur that often. A more complete fix that avoids
this case too is outlined in #17185, but too big of a change to backport
Diffstat (limited to 'contrib/k8s')
0 files changed, 0 insertions, 0 deletions