##// END OF EJS Templates
hooks: allow skip hooks seperately for git and svn
marcink -
r435:b6e06d50 stable
parent child Browse files
Show More
@@ -25,7 +25,7 b' def main():'
25 # this allows simply push to this repo even without rhodecode
25 # this allows simply push to this repo even without rhodecode
26 sys.exit(0)
26 sys.exit(0)
27
27
28 if os.environ.get('RC_SKIP_HOOKS'):
28 if os.environ.get('RC_SKIP_HOOKS') or os.environ.get('RC_SKIP_GIT_HOOKS'):
29 sys.exit(0)
29 sys.exit(0)
30
30
31 repo_path = os.getcwd()
31 repo_path = os.getcwd()
@@ -25,7 +25,7 b' def main():'
25 # this allows simply push to this repo even without rhodecode
25 # this allows simply push to this repo even without rhodecode
26 sys.exit(0)
26 sys.exit(0)
27
27
28 if os.environ.get('RC_SKIP_HOOKS'):
28 if os.environ.get('RC_SKIP_HOOKS') or os.environ.get('RC_SKIP_GIT_HOOKS'):
29 sys.exit(0)
29 sys.exit(0)
30
30
31 repo_path = os.getcwd()
31 repo_path = os.getcwd()
@@ -26,7 +26,7 b' def main():'
26 # this allows simply push to this repo even without rhodecode
26 # this allows simply push to this repo even without rhodecode
27 sys.exit(0)
27 sys.exit(0)
28
28
29 if os.environ.get('RC_SKIP_HOOKS'):
29 if os.environ.get('RC_SKIP_HOOKS') or os.environ.get('RC_SKIP_SVN_HOOKS'):
30 sys.exit(0)
30 sys.exit(0)
31 repo_path = os.getcwd()
31 repo_path = os.getcwd()
32 push_data = sys.argv[1:]
32 push_data = sys.argv[1:]
@@ -29,7 +29,7 b' def main():'
29 # exit with success if we cannot import vcsserver.hooks !!
29 # exit with success if we cannot import vcsserver.hooks !!
30 # this allows simply push to this repo even without rhodecode
30 # this allows simply push to this repo even without rhodecode
31 sys.exit(0)
31 sys.exit(0)
32 if os.environ.get('RC_SKIP_HOOKS'):
32 if os.environ.get('RC_SKIP_HOOKS') or os.environ.get('RC_SKIP_SVN_HOOKS'):
33 sys.exit(0)
33 sys.exit(0)
34 repo_path = os.getcwd()
34 repo_path = os.getcwd()
35 push_data = sys.argv[1:]
35 push_data = sys.argv[1:]
General Comments 0
You need to be logged in to leave comments. Login now