Skip to content

Commit c39e947

Browse files
committed
typo: missed refactoring to target_length
1 parent b45deaa commit c39e947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/lengthen-sha1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ module TrackSha1Assertions
3131
extra += 1
3232
end
3333

34-
lengthened = passing.slice(0..sha1.length + extra)
34+
lengthened = passing.slice(0..target_length + extra)
3535

3636
super(lengthened, *contributor_names, **options)
3737
relative_test_file, calling_test_line = relative_test_file_and_line(e.backtrace)
3838

39-
warn "Ambiguous sha1 #{sha1} was lengthened to #{passing.slice(0..sha1.length + extra)} to pass rails test #{relative_test_file}:#{calling_test_line}"
39+
warn "Ambiguous sha1 #{sha1} was lengthened to #{passing.slice(0..target_length + extra)} to pass rails test #{relative_test_file}:#{calling_test_line}"
4040
sha1_lengthenings.push([relative_test_file, sha1, lengthened])
4141
else
4242
raise e

0 commit comments

Comments
 (0)