Closed
Description
On windows7. There is a main (pre-receive hook declined) error on my PC.
Both git cli and browser pushes were refused. Currently I go back to use v1.17.4.
The Gitea version is 1.18.0, but v1.18.0 on linux x86_64 is ok.
Logs when the (pre-receive hook declined) error occurred:
2023/01/07 12:09:41 ...y/files/temp_repo.go:314:Push() [I] [63b8f033] Unable to push back to repo from temporary repo due to rejection: Other/Go (D:/gitea/data/tmp/local-repo\upload.git2949402268)
Stdout:
Stderr: remote:
remote: Gitea: Internal Server Error
remote: * Checking 1 references
To D:\gitea\data\gitea-repositories\other\go.git
! [remote rejected] cb0e2ba9efbc8f5fa984a61aebee5781a0d81b83 -> main (pre-receive hook declined)
error: failed to push some refs to 'D:\gitea\data\gitea-repositories\other\go.git'
Error: exit status 1
2023/01/07 12:09:41 ...tory/files/update.go:448:CreateOrUpdateRepoFile() [E] [63b8f033] *log.ColoredValue PushRejected Error: exit status 1: remote:
remote: Gitea: Internal Server Error
remote: * Checking 1 references
To D:\gitea\data\gitea-repositories\other\go.git
! [remote rejected] cb0e2ba9efbc8f5fa984a61aebee5781a0d81b83 -> main (pre-receive hook declined)
error: failed to push some refs to 'D:\gitea\data\gitea-repositories\other\go.git'
2023/01/07 12:09:41 ...y/files/temp_repo.go:50:Close() [E] [63b8f033] Failed to remove temporary path D:/gitea/data/tmp/local-repo\upload.git2949402268: remove D:/gitea/data/tmp/local-repo\upload.git2949402268: The process cannot access the file because it is being used by another process.
Originally posted by @sinotaotao in #22293 (comment)