diff options
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 8d801e08..9ad55d79 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -431,8 +431,10 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
431 | hook = RepoHook('pre-upload', self.manifest.repo_hooks_project, | 431 | hook = RepoHook('pre-upload', self.manifest.repo_hooks_project, |
432 | self.manifest.topdir, abort_if_user_denies=True) | 432 | self.manifest.topdir, abort_if_user_denies=True) |
433 | pending_proj_names = [project.name for (project, avail) in pending] | 433 | pending_proj_names = [project.name for (project, avail) in pending] |
434 | pending_worktrees = [project.worktree for (project, avail) in pending] | ||
434 | try: | 435 | try: |
435 | hook.Run(opt.allow_all_hooks, project_list=pending_proj_names) | 436 | hook.Run(opt.allow_all_hooks, project_list=pending_proj_names, |
437 | worktree_list=pending_worktrees) | ||
436 | except HookError as e: | 438 | except HookError as e: |
437 | print("ERROR: %s" % str(e), file=sys.stderr) | 439 | print("ERROR: %s" % str(e), file=sys.stderr) |
438 | return | 440 | return |