fi
remote_branch=${remote_branch#refs/heads/}
+ reviewers=""
+ while [[ $# -gt 0 ]] ; do
+ case $1 in
+ --re)
+ reviewers=$2
+ shift
+ ;;
+ *)
+ err "unknown option: $1"
+ ;;
+ esac
+ shift
+ done
+
+ git_args=()
+ if [[ -n ${reviewers} ]] ; then
+ reviewers=( ${reviewers//,/ } )
+ git_args+=( "--receive-pack='git receive-pack ${reviewers[*]/#/--reviewer=}'" )
+ fi
+
for remote in cros-internal cros origin ; do
if g cfg --get "remote.${remote}.url" >/dev/null ; then
- vr git push ${remote} ${branch}:refs/for/${remote_branch}
+ vr git push "${git_args[@]}" ${remote} ${branch}:refs/for/${remote_branch}
exit $?
fi
done