From e7d88cd8f0720a0ccd5599632c0c8366800051d4 Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Tue, 4 Oct 2016 11:47:33 -0400 Subject: [PATCH] git-push-review: Handle reviewers with no explicit config This "or r" was accidentally removed in I5ad5b617. Change-Id: If4419e204b54e619559ed2a2a25c508fc2367d35 --- contrib/git-push-review | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/git-push-review b/contrib/git-push-review index aeea552c92..87eaa4cc8b 100755 --- a/contrib/git-push-review +++ b/contrib/git-push-review @@ -72,7 +72,8 @@ def main(argv): opts = collections.defaultdict(list) is_hashtag = lambda x: x.startswith('#') opts['r'].extend( - get_config('reviewer.' + r) for r in args.args if not is_hashtag(r)) + (get_config('reviewer.' + r) or r) + for r in args.args if not is_hashtag(r)) opts['t'].extend(t[1:] for t in args.args if is_hashtag(t)) if args.topic: opts['topic'].append(args.topic)