summaryrefslogtreecommitdiffstats
path: root/modules/repository/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repository/hooks.go')
-rw-r--r--modules/repository/hooks.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/repository/hooks.go b/modules/repository/hooks.go
index c2eb3a7c75..7bc77552bd 100644
--- a/modules/repository/hooks.go
+++ b/modules/repository/hooks.go
@@ -8,6 +8,7 @@ import (
"fmt"
"os"
"path/filepath"
+ "runtime"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
@@ -153,6 +154,10 @@ func createDelegateHooks(repoPath string) (err error) {
}
func checkExecutable(filename string) bool {
+ // windows has no concept of a executable bit
+ if runtime.GOOS == "windows" {
+ return true
+ }
fileInfo, err := os.Stat(filename)
if err != nil {
return false