Merge "Client (old): don't translate null to 0000000"

This commit is contained in:
Zuul 2024-01-30 09:04:26 +00:00 committed by Gerrit Code Review
commit 184f73ae02

View File

@ -562,11 +562,6 @@ class Client(zuul.cmd.ZuulApp):
if self.args.oldrev == self.args.newrev:
parser.error(
"The old and new revisions must not be the same.")
# if they're not set, we pad them out to zero
if self.args.oldrev is None:
self.args.oldrev = '0000000000000000000000000000000000000000'
if self.args.newrev is None:
self.args.newrev = '0000000000000000000000000000000000000000'
if self.args.func == self.dequeue:
if self.args.change is None and self.args.ref is None:
parser.error("Change or ref needed.")