Contradictory messages when deleting branch #10167

Closed
opened 2025-11-02 09:00:04 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @kernie on GitHub (Jan 27, 2023).

Description

When I delete a branch on the Code -> Branch tab, a message pops up that this delete is permanent and cannot be redone.

After confirming I see the image below where I can restore the branch...

grafik

Whether or not this might work it would be better to have a more consistent wording.

By the way thanks for this great software!

Gitea Version

1.18.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Ubuntu 18.04

How are you running Gitea?

Manual server installation with systemd

Database

MySQL

Originally created by @kernie on GitHub (Jan 27, 2023). ### Description When I delete a branch on the Code -> Branch tab, a message pops up that this delete is permanent and cannot be redone. After confirming I see the image below where I can restore the branch... <img width="988" alt="grafik" src="https://user-images.githubusercontent.com/23321751/215121792-620d47c1-b233-40b6-b4f8-42b0237f1fab.png"> Whether or not this might work it would be better to have a more consistent wording. By the way thanks for this great software! ### Gitea Version 1.18.3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Ubuntu 18.04 ### How are you running Gitea? Manual server installation with systemd ### Database MySQL
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 09:00:04 -06:00
Author
Owner

@lunny commented on GitHub (Jan 30, 2023):

It can be reverted in a very short time.

@lunny commented on GitHub (Jan 30, 2023): It can be reverted in a very short time.
Author
Owner

@kernie commented on GitHub (Jan 31, 2023):

According to discussion at Crowdin (in German) for repo:branch.delete_desc there is a proposal to change it into:

"Deleting a branch is permanent after 'git cleanup task' was run (by default once per day). It CANNOT be undone. Continue?"

Is options/locale/locale_en-US.ini the right place to create a pull request?

@kernie commented on GitHub (Jan 31, 2023): According to discussion at Crowdin (in German) for `repo:branch.delete_desc` there is a proposal to change it into: "Deleting a branch is permanent after 'git cleanup task' was run (by default once per day). It <strong>CANNOT</strong> be undone. Continue?" Is `options/locale/locale_en-US.ini` the right place to create a pull request?
Author
Owner

@wxiaoguang commented on GitHub (Apr 25, 2023):

Per https://github.com/go-gitea/gitea/pull/22696#issuecomment-1521036199

@wxiaoguang commented on GitHub (Apr 25, 2023): Per https://github.com/go-gitea/gitea/pull/22696#issuecomment-1521036199
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10167