Update index.py

This commit is contained in:
midoks
2022-11-30 15:14:07 +08:00
parent febe56f430
commit ab6f860bde
+1 -1
View File
@@ -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: