diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-06-14 13:33:29 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-06-14 13:33:29 +0900 |
commit | 2019256717d70bcfa1c6cd3869cfdc02310adb7a (patch) | |
tree | a354a9651be896d3b088356b0a73fb280fb14df8 /t/t1307-config-blob.sh | |
parent | Merge branch 'dd/honor-users-tar-in-tests' (diff) | |
parent | test-lib: split up and deprecate test_create_repo() (diff) | |
download | tgif-2019256717d70bcfa1c6cd3869cfdc02310adb7a.tar.xz |
Merge branch 'ab/test-lib-updates'
Test clean-up.
* ab/test-lib-updates:
test-lib: split up and deprecate test_create_repo()
test-lib: do not show advice about init.defaultBranch under --verbose
test-lib: reformat argument list in test_create_repo()
submodule tests: use symbolic-ref --short to discover branch name
test-lib functions: add --printf option to test_commit
describe tests: convert setup to use test_commit
test-lib functions: add an --annotated option to "test_commit"
test-lib-functions: document test_commit --no-tag
test-lib-functions: reword "test_commit --append" docs
test-lib tests: remove dead GIT_TEST_FRAMEWORK_SELFTEST variable
test-lib: bring $remove_trash out of retirement
Diffstat (limited to 't/t1307-config-blob.sh')
-rwxr-xr-x | t/t1307-config-blob.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/t/t1307-config-blob.sh b/t/t1307-config-blob.sh index 002e6d3388..930dce06f0 100755 --- a/t/t1307-config-blob.sh +++ b/t/t1307-config-blob.sh @@ -65,9 +65,7 @@ test_expect_success 'parse errors in blobs are properly attributed' ' ' test_expect_success 'can parse blob ending with CR' ' - printf "[some]key = value\\r" >config && - git add config && - git commit -m CR && + test_commit --printf CR config "[some]key = value\\r" && echo value >expect && git config --blob=HEAD:config some.key >actual && test_cmp expect actual |