You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"message": "branch does not exist [name: string]",
"url": "https://try.gitea.io/api/swagger"
}
Gitea Version: 1.12.0+dev-89-gb264c3039
The text was updated successfully, but these errors were encountered:
6543
changed the title
[Bug] [API] repoCreateFile return 500 if branch not set as option
[Bug] [API] repoCreateFile return 500 if branch not exist
Apr 6, 2020
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
as title
try:
curl -X POST "https://try.gitea.io/api/v1/repos/abcKing/repo_uninit/contents/README.md?token=yourtocken" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"author\": { \"email\": \"[email protected]\", \"name\": \"string\" }, \"branch\": \"string\", \"committer\": { \"email\": \"[email protected]\", \"name\": \"string\" }, \"content\": \"c3RyaW5nCg==\", \"dates\": { \"author\": \"2020-04-06T01:37:35.137Z\", \"committer\": \"2020-04-06T01:37:35.137Z\" }, \"message\": \"string\"}"
It return:
Gitea Version: 1.12.0+dev-89-gb264c3039
The text was updated successfully, but these errors were encountered: