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

Workaround delete folder on Windows. #2570

Merged
merged 1 commit into from
Feb 7, 2016
Merged

Workaround delete folder on Windows. #2570

merged 1 commit into from
Feb 7, 2016

Conversation

andreynering
Copy link
Contributor

Fix #1738

I tested and it is working properly. The folder is really deleted and I could create another repo with the same name.


if setting.IsWindows {
if err := exec.Command("cmd", "/C", "rmdir", "/S", "/Q", path).Run(); err != nil {
createNotice(err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can just call this only after if-else block?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@unknwon Done!

@unknwon unknwon added the status: needs feedback Tell me more about it label Feb 7, 2016
@unknwon unknwon removed the status: needs feedback Tell me more about it label Feb 7, 2016
@unknwon
Copy link
Member

unknwon commented Feb 7, 2016

Cool!

unknwon added a commit that referenced this pull request Feb 7, 2016
Workaround delete folder on Windows.
@unknwon unknwon merged commit e2b4a24 into gogs:develop Feb 7, 2016
@andreynering andreynering deleted the fix-1738 branch February 7, 2016 15:47
ethantkoenig pushed a commit to ethantkoenig/gogs that referenced this pull request Nov 10, 2017
* add external markup render support

* bug fixed

* refacotr codes and fix wrong error log

* fix comments and add check to prevent leaks

* add check for config file and improve the example

* check file close error

* use ioutil.TempFile instead uuid

* correct Render -> Parser

* improve warning when incorrect markup setting

* fix typos
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants