]> source.dussan.org Git - gitea.git/commit
When dumping trim the standard suffices instead of a random suffix (#19440)
authorzeripath <art27@cantab.net>
Wed, 20 Apr 2022 18:53:34 +0000 (19:53 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Apr 2022 18:53:34 +0000 (20:53 +0200)
commit1e319ba41a3d5362d253fca540b13b2ee92124c8
treea05ea4f88de381933295ad1611bbfe474cfd9ae3
parenta7f0ce620774be861f11b57d426ab59e27e4171a
When dumping trim the standard suffices instead of a random suffix (#19440)

* When dumping trim the standard suffices instead of a random suffix

Instead of using the `path.Ext()` to trim the last "extension" suffix, just iterate
through the supported suffices and trim those.

Fix #19424

Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix enum with to have correct supported types only

Co-authored-by: 6543 <6543@obermui.de>
cmd/dump.go