aboutsummaryrefslogtreecommitdiff
path: root/models/admin.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-18 22:47:32 -0500
committerUnknwon <u@gogs.io>2017-02-18 22:47:32 -0500
commit40fbe7fa8e66fee66819077b2d8ff8f251228acb (patch)
tree35b8d920f23693feeb7fa1bcccf7f41a90cada8f /models/admin.go
parentef922ff757c503db6e22c0ff05c1573e2d7dce7d (diff)
models/repo: handle deletion on Windows (#4152)
Diffstat (limited to 'models/admin.go')
-rw-r--r--models/admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/admin.go b/models/admin.go
index 4e4aba72..045728e4 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -74,7 +74,7 @@ func CreateRepositoryNotice(desc string) error {
// creates a system notice when error occurs.
func RemoveAllWithNotice(title, path string) {
var err error
- // workaround for Go not being able to remove read-only files/folders: https://github.com/golang/go/issues/9606
+ // LEGACY [Go 1.7]: workaround for Go not being able to remove read-only files/folders: https://github.com/golang/go/issues/9606
// this bug should be fixed on Go 1.7, so the workaround should be removed when Gogs don't support Go 1.6 anymore:
// https://github.com/golang/go/commit/2ffb3e5d905b5622204d199128dec06cefd57790
// Note: Windows complains when delete target does not exist, therefore we can skip deletion in such cases.