Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Delete Repo Fails On Windows #15864

Closed
2 of 6 tasks
kdumontnu opened this issue May 13, 2021 · 1 comment · Fixed by #15876
Closed
2 of 6 tasks

[Bug] Delete Repo Fails On Windows #15864

kdumontnu opened this issue May 13, 2021 · 1 comment · Fixed by #15876
Labels
Milestone

Comments

@kdumontnu
Copy link
Contributor

  • Gitea version (or commit ref): 1.15.0+dev-285-g6a8e5f69c
  • Git version:
  • Operating system: Windows
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:
2021/05/13 13:45:45 models/admin.go:87:removeAllWithNotice() [W] Delete repository files [C:\Users\<user>\Documents\5 - Software Development\gitea\data\gitea-repositories\test\lfs_demo.git]: remove C:\Users\<user>\Documents\5 - Software Development\gitea\data\gitea-repositories\test\lfs_demo.git: The process cannot access the file because it is being used by another process.
2021/05/13 13:45:45 ...s/context/context.go:692:1() [D] Session ID: 7b2e3c9790a33b69

Description

Gitea cannot seem to delete a repo on Windows. The contents of the directory are removed, but the .git repo directory root is left behind. This results in a collision if you try to create another repo with the same name.

Appears to work fine on v1.14.

Screenshots

Says the repository was successfully deleted.
image

Collision when creating a repo with the same name
image

@zeripath
Copy link
Contributor

it'll be due to the open git repo.

@lunny lunny added this to the 1.14.3 milestone May 15, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants