Message ID | d1490b8f0b70efca03ed6bf166756a2d93ff1e35.1684258780.git.code@khaugsbakk.name (mailing list archive) |
---|---|
State | Accepted |
Commit | 669c11de85d0071a31de0e49f6e5b602fd54a9ef |
Headers | show |
Series | tag: keep the message file in case ref transaction fails | expand |
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh index 9aa1660651b..1cb738b00d2 100755 --- a/t/t7004-tag.sh +++ b/t/t7004-tag.sh @@ -2127,4 +2127,13 @@ test_expect_success 'Does --[no-]contains stop at commits? Yes!' ' test_cmp expected actual ' +test_expect_success 'If tag is created then tag message file is unlinked' ' + test_when_finished "git tag -d foo" && + write_script fakeeditor <<-\EOF && + echo Message >.git/TAG_EDITMSG + EOF + GIT_EDITOR=./fakeeditor git tag -a foo && + test_path_is_missing .git/TAG_EDITMSG +' + test_done