Update index.py

pull/494/head
midoks 2 years ago
parent fc718ff727
commit d07faf396e
  1. 2
      plugins/gitea/index.py

@ -512,7 +512,7 @@ def checkRepoListIsHasScript(data):
path = getRootPath()
for x in range(len(data)):
name = data[x]['name'] + '/' + data[x]['repo'] + '.git'
path_tmp = path + '/' + name + '/custom_hooks/post-receive'
path_tmp = path + '/' + name + '/custom_hooks/commit'
if os.path.exists(path_tmp):
data[x]['has_hook'] = True
else:

Loading…
Cancel
Save