1
0
Fork 0

Merge "repo: Support multiple branches for the same project."

This commit is contained in:
Conley Owens 2014-01-10 01:20:12 +00:00 committed by Gerrit Code Review
commit e695338e21
6 changed files with 191 additions and 80 deletions

View file

@ -432,8 +432,10 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
hook = RepoHook('pre-upload', self.manifest.repo_hooks_project,
self.manifest.topdir, abort_if_user_denies=True)
pending_proj_names = [project.name for (project, avail) in pending]
pending_worktrees = [project.worktree for (project, avail) in pending]
try:
hook.Run(opt.allow_all_hooks, project_list=pending_proj_names)
hook.Run(opt.allow_all_hooks, project_list=pending_proj_names,
worktree_list=pending_worktrees)
except HookError as e:
print("ERROR: %s" % str(e), file=sys.stderr)
return