Merge branch 'sg/test-oid-wo-incomplete-line'

Test helper updates.

* sg/test-oid-wo-incomplete-line:
  tests: make 'test_oid' print trailing newline
This commit is contained in:
Junio C Hamano
2023-01-05 15:07:18 +09:00
6 changed files with 10 additions and 9 deletions

View File

@ -1682,7 +1682,7 @@ test_oid () {
then
BUG "undefined key '$1'"
fi &&
eval "printf '%s' \"\${$var}\""
eval "printf '%s\n' \"\${$var}\""
}
# Insert a slash into an object ID so it can be used to reference a location