Skip to content

Commit 0005be9

Browse files
committed
gerrit-push-for: Do not offer to push without reviewers if there are none
1 parent 2cb8b00 commit 0005be9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gerrit/gerrit-push-for.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ else
105105
echo "Skipping determining reviewers."
106106
fi
107107

108-
read -p "Do you want to push this review? [(Y)es/with(o)ut reviewers/(n)o] " -n 1 -r
108+
if [ -n "$reviewers" ]; then
109+
choice="/with(o)ut reviewers"
110+
fi
111+
read -p "Do you want to push this review? [(Y)es$choice/(n)o] " -n 1 -r
109112
echo
110113

111114
if [ "$REPLY" != "o" -a "$REPLY" != "O" ]; then

0 commit comments

Comments
 (0)