1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-12 18:54:28 +00:00
Norwin 245596e130
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
2021-10-08 13:53:54 -04:00
..
2016-11-25 14:53:59 +08:00
2019-06-26 16:51:32 +08:00
2021-01-27 22:56:54 +08:00
2021-04-30 19:25:13 +02:00
2021-01-26 16:36:53 +01:00
2021-01-26 16:36:53 +01:00