gogs修改

post-receive很少修改。
commit 修改比较多
This commit is contained in:
Mr Chen 2019-03-18 15:17:41 +08:00
parent 417b78642c
commit 2c33997667
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ def projectScriptEdit():
user = args['user']
name = args['name'] + '.git'
post_receive = getRootPath() + '/' + user + '/' + name + \
'/custom_hooks/post-receive'
'/custom_hooks/commit'
if os.path.exists(post_receive):
return public.returnJson(True, 'OK', {'path': post_receive})
else: