File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ cpm_get_shortest_hash(${tmp} "cccb77be9609d2768ed80dd42cec54f77b1f1456" hash)
5353assert_equal(${hash} "cccb77be" )
5454assert_contents_equal(${tmp} /cccb77be.hash cccb77be9609d2768ed80dd42cec54f77b1f1456)
5555
56+ # check that legacy hashs are recognized
57+ file (MAKE_DIRECTORY "${tmp} /cccb77be9609d2768ed80dd42cec54f77b1f1457" )
58+ cpm_get_shortest_hash(${tmp} "cccb77be9609d2768ed80dd42cec54f77b1f1457" hash)
59+ assert_equal(${hash} "cccb77be9609d2768ed80dd42cec54f77b1f1457" )
60+
5661# 1. The old file should still exist, and have the same content
5762assert_contents_equal(${tmp} /cccb.hash cccb77ae9609d2768ed80dd42cec54f77b1f1455)
5863assert_contents_equal(${tmp} /cccb77ae.hash cccb77ae9609d2768ed80dd42cec54f77b1f1456)
You can’t perform that action at this time.
0 commit comments