Name change #11163

Closed
opened 2025-11-02 09:29:27 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @C-EO on GitHub (Jul 4, 2023).

Description

I have tried to change the name of my repo under an organization and Gitea keeps telling me The repository name is already used. I have tried checking for an available repo using the URL, but it returns the 404 page.

Is it a problem with the DB I'm using or?
( I use MySQL from Planetscale)

Gitea Version

1.21.0+dev-215-gff140d405

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

image

https://github.com/go-gitea/gitea/assets/85847352/83b9e971-6fe9-4fb8-ad8b-c8e7d7aaafe5

Git Version

2.33.1, Wire Protocol Version 2 Enabled

Operating System

linux 5.19.0-1026-gcp

How are you running Gitea?

I'm using a binary download from here. I' running Gitea from the command-line with a GUI.

Database

MySQL

Originally created by @C-EO on GitHub (Jul 4, 2023). ### Description I have tried to change the name of my repo under an organization and Gitea keeps telling me `The repository name is already used.` I have tried checking for an available repo using the URL, but it returns the 404 page. Is it a problem with the DB I'm using or? ( I use MySQL from Planetscale) ### Gitea Version 1.21.0+dev-215-gff140d405 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/85847352/eb0d070b-0c56-4be1-ac5c-41a6eec7fc7a) ![image](https://github.com/go-gitea/gitea/assets/85847352/71a22447-8647-4f53-b500-0d4d1c0ebb30) https://github.com/go-gitea/gitea/assets/85847352/83b9e971-6fe9-4fb8-ad8b-c8e7d7aaafe5 ### Git Version 2.33.1, Wire Protocol Version 2 Enabled ### Operating System linux 5.19.0-1026-gcp ### How are you running Gitea? I'm using a binary download from [here](https://dl.gitea.com/gitea/main/gitea-main-nightly-linux-amd64). I' running Gitea from the command-line with a GUI. ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 09:29:27 -06:00
Author
Owner

@silverwind commented on GitHub (Jul 4, 2023):

Maybe this is because there was a previous repo with that name. I do recall we keep some info on renamed repos in the database to be able to redirect the name after a rename. If this blocks the creation, it's a bug.

@silverwind commented on GitHub (Jul 4, 2023): Maybe this is because there was a previous repo with that name. I do recall we keep some info on renamed repos in the database to be able to redirect the name after a rename. If this blocks the creation, it's a bug.
Author
Owner

@yp05327 commented on GitHub (Jul 5, 2023):

Maybe there's previous data in data/gitea-reposiroties/imperialbot/musicbot.git

@yp05327 commented on GitHub (Jul 5, 2023): Maybe there's previous data in `data/gitea-reposiroties/imperialbot/musicbot.git`
Author
Owner

@C-EO commented on GitHub (Jul 6, 2023):

None exists there

@C-EO commented on GitHub (Jul 6, 2023): None exists there
Author
Owner

@C-EO commented on GitHub (Jul 6, 2023):

Found it. After reloading the system I found it.

But one question though, which cron-job is supposed to delete empty repos?

I ran all of them but it wasn't until I deleted the musicbot.git myself that I could get to rename.

@C-EO commented on GitHub (Jul 6, 2023): Found it. After reloading the system I found it. But one question though, which cron-job is supposed to delete empty repos? I ran all of them but it wasn't until I deleted the `musicbot.git` myself that I could get to rename.
Author
Owner

@denyskon commented on GitHub (Oct 27, 2023):

Is this issue solved?

@denyskon commented on GitHub (Oct 27, 2023): Is this issue solved?
Author
Owner

@silverwind commented on GitHub (Oct 30, 2023):

At least the original issue seems to have turned out invalid.

@silverwind commented on GitHub (Oct 30, 2023): At least the original issue seems to have turned out invalid.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11163