Show More
@@ -274,7 +274,8 b' def pre_push(ui, repo, node=None, **kwar' | |||
|
274 | 274 | |
|
275 | 275 | |
|
276 | 276 | def pre_push_ssh(ui, repo, node=None, **kwargs): |
|
277 |
|
|
|
277 | extras = _extras_from_ui(ui) | |
|
278 | if extras.get('SSH'): | |
|
278 | 279 | return pre_push(ui, repo, node, **kwargs) |
|
279 | 280 | |
|
280 | 281 | return 0 |
@@ -452,6 +453,9 b' def git_pre_receive(unused_repo_path, re' | |||
|
452 | 453 | detect_force_push = extras.get('detect_force_push') |
|
453 | 454 | |
|
454 | 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 | 459 | push_ref['pruned_sha'] = '' |
|
456 | 460 | if not detect_force_push: |
|
457 | 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