Update index.py

This commit is contained in:
midoks
2023-10-30 15:49:56 +08:00
parent fc718ff727
commit d07faf396e
+1 -1
View File
@@ -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: