##// END OF EJS Templates
git-hooks: store git-env into hooks, so we can use the sandbox storage area, and execute...
marcink -
r510:ef7f8525 default
parent child Browse files
Show More
@@ -274,7 +274,8 b' def pre_push(ui, repo, node=None, **kwar'
274
274
275
275
276 def pre_push_ssh(ui, repo, node=None, **kwargs):
276 def pre_push_ssh(ui, repo, node=None, **kwargs):
277 if _extras_from_ui(ui).get('SSH'):
277 extras = _extras_from_ui(ui)
278 if extras.get('SSH'):
278 return pre_push(ui, repo, node, **kwargs)
279 return pre_push(ui, repo, node, **kwargs)
279
280
280 return 0
281 return 0
@@ -452,6 +453,9 b' def git_pre_receive(unused_repo_path, re'
452 detect_force_push = extras.get('detect_force_push')
453 detect_force_push = extras.get('detect_force_push')
453
454
454 for push_ref in rev_data:
455 for push_ref in rev_data:
456 # store our git-env which holds the temp store
457 push_ref['git_env'] = [
458 (k, v) for k, v in os.environ.items() if k.startswith('GIT')]
455 push_ref['pruned_sha'] = ''
459 push_ref['pruned_sha'] = ''
456 if not detect_force_push:
460 if not detect_force_push:
457 # don't check for forced-push when we don't need to
461 # don't check for forced-push when we don't need to
General Comments 0
You need to be logged in to leave comments. Login now