Closed
Description
Description
When editing a repo with the GiteaAPI we get this error:
GiteaAPI.Client.ApiException
HResult=0x80131500
Message=Error calling RepoEdit: {"message":"repo is not a mirror, can not change mirror interval","url":"http://...:3000/api/swagger"}
Source=GiteaAPI
StackTrace:
at GiteaAPI.Api.RepositoryApi.<RepoEditWithHttpInfoAsync>d__240.MoveNext()
at GiteaAPI.Api.RepositoryApi.<RepoEditAsync>d__239.MoveNext()
when calling RepoEditAsync
with some options and EditRepoOption { MirrorInterval=null }
which should do nothing to the mirror interval, as stated in RepoEditAsync summary: "Edit a repository's properties. Only fields that are set will be changed"
This happens in 1.22-RC.1 and also 1.21.11 , but not in 1.21.1 (that's the versions we tested)
Gitea Version
1.22-RC.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
- windows go git,
- linux gitea in docker
Database
SQLite