Skip to content

gitea doctor --run hooks produces warnings on windows  #20636

Closed
@eeyrjmr

Description

@eeyrjmr

Description

if gitea doctor --run hooks (or --all) is run on a windows system, the script check fails when testing if the script is executable. This check does not make sense on windows as it stands

D:\gitea>gitea doctor --run hooks
[1] Check if hook files are up-to-date and executable
 - [W] old hook file D:\gitea\data\gitea-repositories\iti\internaltestinterface.git\hooks\pre-receive is not executable
 - [W] new hook file D:\gitea\data\gitea-repositories\iti\internaltestinterface.git\hooks\pre-receive.d\gitea is not executable
 - [W] old hook file D:\gitea\data\gitea-repositories\iti\internaltestinterface.git\hooks\update is not executable
 - [W] new hook file D:\gitea\data\gitea-repositories\iti\internaltestinterface.git\hooks\update.d\gitea is not executable
 - [W] old hook file D:\gitea\data\gitea-repositories\iti\internaltestinterface.git\hooks\post-receive is not executable
 - [W] new hook file D:\gitea\data\gitea-repositories\iti\internaltestinterface.git\hooks\post-receive.d\gitea is not executable
 - [W] old hook file D:\gitea\data\gitea-repositories\infra\eng_wiki.git\hooks\pre-receive is not executable

Gitea Version

1.17

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

windows

How are you running Gitea?

service

Database

MySQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions