Update index.py

pull/282/head
midoks 2 years ago
parent febe56f430
commit ab6f860bde
  1. 2
      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:

Loading…
Cancel
Save