Create branch via API, error says the old branch doesn't exists #14942

Closed
opened 2025-11-02 11:26:26 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @mashraf92 on GitHub (Sep 10, 2025).

Description

Gitea Version: 1.24.3
Trying to create new branches with git tags or tags commit SHA but couldn't able to create the branch, error says, the old branch doesn't exists. Tried curl and swagger had the same error. Anybody have any idea about it. Need to create multiple branches per repos. The said repo is forked repo not an normal one.

Gitea Version

1.24.3

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?

Running on kubernetes from the official image

Database

PostgreSQL

Originally created by @mashraf92 on GitHub (Sep 10, 2025). ### Description Gitea Version: 1.24.3 Trying to create new branches with git tags or tags commit SHA but couldn't able to create the branch, error says, the old branch doesn't exists. Tried curl and swagger had the same error. Anybody have any idea about it. Need to create multiple branches per repos. The said repo is forked repo not an normal one. ### Gitea Version 1.24.3 ### 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? Running on kubernetes from the official image ### Database PostgreSQL
GiteaMirror added the issue/needs-feedbackissue/not-a-bug labels 2025-11-02 11:26:26 -06:00
Author
Owner

@lunny commented on GitHub (Sep 10, 2025):

Could you provide more details?

@lunny commented on GitHub (Sep 10, 2025): Could you provide more details?
Author
Owner

@mashraf92 commented on GitHub (Sep 11, 2025):

Image Swagger Response same 404 recevied on local api response.

Image

Same commit exist on the repo

@mashraf92 commented on GitHub (Sep 11, 2025): ![Image](https://github.com/user-attachments/assets/4acee628-419b-48ef-91be-c35acde0571c) Swagger Response same 404 recevied on local api response. <img width="629" height="273" alt="Image" src="https://github.com/user-attachments/assets/1092d5a8-11e0-4f0f-a4ae-9c55a4d48f9e" /> Same commit exist on the repo
Author
Owner

@Zettat123 commented on GitHub (Sep 16, 2025):

You need a token to call this API.

Image
@Zettat123 commented on GitHub (Sep 16, 2025): You need a token to call this API. <img width="640" height="205" alt="Image" src="https://github.com/user-attachments/assets/3253d70a-f692-448d-8984-ede934b4a890" />
Author
Owner

@mashraf92 commented on GitHub (Sep 19, 2025):

Issue got resolved after updating to 1.24.6

@mashraf92 commented on GitHub (Sep 19, 2025): Issue got resolved after updating to 1.24.6
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14942