diff --git a/plugins/gitea/index.py b/plugins/gitea/index.py index 3570cbf8f..ad56f1c87 100755 --- a/plugins/gitea/index.py +++ b/plugins/gitea/index.py @@ -519,7 +519,7 @@ def checkProjectListIsHasScript(user, data): path = getRootPath() + '/' + user for x in range(len(data)): name = data[x]['name'] + '.git' - path_tmp = path + '/' + name + '/custom_hooks/post-receive' + path_tmp = path + '/' + name + '/hooks/post-receive.d/post-receive' if os.path.exists(path_tmp): data[x]['has_hook'] = True else: