Fix no-change detection.
Somewhere along the line, the check for no changes to upload broke. This fixes it. Change-Id: Ib1e9407f4ab33c30637bef6ff8474a845698bdb4
This commit is contained in:
parent
3ad95bd821
commit
6fbec02c16
@ -413,6 +413,8 @@ def assert_one_change(remote, branch, yes, have_hook):
|
||||
print(output)
|
||||
sys.exit(1)
|
||||
output_lines = len(output.split("\n"))
|
||||
if not output:
|
||||
output_lines = 0
|
||||
if output_lines == 1 and not have_hook:
|
||||
print("Your change was committed before the commit hook was installed")
|
||||
print("Amending the commit to add a gerrit change id")
|
||||
|
Loading…
x
Reference in New Issue
Block a user