mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5380fd5d6d
Hi, This PR fixes #27988. The use of `path.join`(which uses `/` as the file separator) to construct paths and comparing them with paths constructed using `filepath.join`(which uses platform specific file separator) is the root cause of this issue. The desired behavior is to ignore attachments when dumping data directory. Due to the what's mentioned above, the function `addRecursiveExclude` is not actually ignoring the attachments directory and is being written to the archive. The attachment directory is again added to the archive (with different file separator as mentioned in the issue) causing a duplicate entry on windows. The solution is to use `filepath.join` in `addResursiveExclude` to construct `currentAbsPath`. |
1 year ago | |
---|---|---|
.. | ||
actions.go | 2 years ago | |
admin.go | 1 year ago | |
admin_auth.go | 1 year ago | |
admin_auth_ldap.go | 1 year ago | |
admin_auth_ldap_test.go | 1 year ago | |
admin_auth_oauth.go | 1 year ago | |
admin_auth_stmp.go | 1 year ago | |
admin_regenerate.go | 1 year ago | |
admin_user.go | 2 years ago | |
admin_user_change_password.go | 2 years ago | |
admin_user_create.go | 1 year ago | |
admin_user_delete.go | 2 years ago | |
admin_user_generate_access_token.go | 1 year ago | |
admin_user_list.go | 1 year ago | |
admin_user_must_change_password.go | 2 years ago | |
cert.go | 1 year ago | |
cmd.go | 2 years ago | |
docs.go | 2 years ago | |
doctor.go | 2 years ago | |
doctor_convert.go | 2 years ago | |
dump.go | 1 year ago | |
dump_repo.go | 2 years ago | |
embedded.go | 2 years ago | |
generate.go | 2 years ago | |
hook.go | 2 years ago | |
hook_test.go | 2 years ago | |
keys.go | 2 years ago | |
mailer.go | 2 years ago | |
main.go | 2 years ago | |
main_test.go | 1 year ago | |
manager.go | 2 years ago | |
manager_logging.go | 2 years ago | |
migrate.go | 2 years ago | |
migrate_storage.go | 1 year ago | |
migrate_storage_test.go | 1 year ago | |
restore_repo.go | 2 years ago | |
serv.go | 2 years ago | |
web.go | 2 years ago | |
web_acme.go | 2 years ago | |
web_graceful.go | 2 years ago | |
web_https.go | 2 years ago |