diff --git a/rhodecode/config/post_receive_tmpl.py b/rhodecode/config/post_receive_tmpl.py --- a/rhodecode/config/post_receive_tmpl.py +++ b/rhodecode/config/post_receive_tmpl.py @@ -4,6 +4,8 @@ import sys try: import rhodecode + RC_HOOK_VER = '_TMPL_' + os.environ['RC_HOOK_VER'] = RC_HOOK_VER from rhodecode.lib.hooks import handle_git_post_receive except ImportError: rhodecode = None @@ -17,7 +19,7 @@ def main(): sys.exit(0) repo_path = os.path.abspath('.') - push_data = sys.stdin.read().strip().split(' ') + push_data = sys.stdin.readlines() # os.environ is modified here by a subprocess call that # runs git and later git executes this hook. # Environ get's some additional info from rhodecode system