diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index 740bbae7f..5a368dfdd 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -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: