Commit f88cc778 authored by Robert Lyon's avatar Robert Lyon
Browse files

Fixing mistake with checking how far patch is behind master

Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent ea909a7c
......@@ -48,7 +48,7 @@ passthru_or_die("git fetch origin $GERRIT_BRANCH");
echo "";
$behindby = shell_exec_or_die("git rev-list HEAD..origin/$GERRIT_BRANCH | wc -l");
echo "This patch is behind $GERRIT_BRANCH by $behindby commit(s)\n";
if ($behindby < $MAXBEHIND) {
if ($behindby > $MAXBEHIND) {
echo "This patch is too far behind master, please rebase\n";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment