test-sha256: skip push-create

See #3783 why it is hard to support
This commit is contained in:
oliverpool 2024-05-21 14:21:36 +02:00
parent 7e1f7f6a50
commit c19b1cc76d

View file

@ -592,6 +592,9 @@ func doEnsureDiffNoChange(ctx APITestContext, pr api.PullRequest, diffHash strin
func doPushCreate(ctx APITestContext, u *url.URL, objectFormat git.ObjectFormat) func(t *testing.T) { func doPushCreate(ctx APITestContext, u *url.URL, objectFormat git.ObjectFormat) func(t *testing.T) {
return func(t *testing.T) { return func(t *testing.T) {
if objectFormat == git.Sha256ObjectFormat {
t.Skipf("push-create not supported for %s, see https://codeberg.org/forgejo/forgejo/issues/3783", objectFormat)
}
defer tests.PrintCurrentTest(t)() defer tests.PrintCurrentTest(t)()
// create a context for a currently non-existent repository // create a context for a currently non-existent repository