diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-03-25 19:20:49 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-26 15:10:48 -0700 |
commit | 64af7752bb3682200da0e7d3c8fc0821d2609566 (patch) | |
tree | 8fde8d656624c51d174738c47c8601c1d557e5ca /t/t1412-reflog-loop.sh | |
parent | t1300: abstract away SHA-1-specific constants (diff) | |
download | tgif-64af7752bb3682200da0e7d3c8fc0821d2609566.tar.xz |
t1405: sort reflog entries in a hash-independent way
The test enumerates reflog entries in an arbitrary order and then sorts
them. For SHA-1, this produces results that happen to sort in
alphabetical order, but for other hash algorithms they sort differently.
Ensure we sort the reflog entries in a hash-independent way by sorting
on the ref name instead of the object ID. Remove an assumption about
the length of a hash by using cut with the delimiter and field options
instead of the character range option.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1412-reflog-loop.sh')
0 files changed, 0 insertions, 0 deletions