Skip to content

Commit 669c11d

Browse files
LemmingAvalanchegitster
authored andcommitted
t/t7004-tag: add regression test for successful tag creation
The standard tag message file is unlinked if the tag is created. Signed-off-by: Kristoffer Haugsbakk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 719515f commit 669c11d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t7004-tag.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,4 +2188,13 @@ test_expect_success 'Does --[no-]contains stop at commits? Yes!' '
21882188
test_cmp expected actual
21892189
'
21902190

2191+
test_expect_success 'If tag is created then tag message file is unlinked' '
2192+
test_when_finished "git tag -d foo" &&
2193+
write_script fakeeditor <<-\EOF &&
2194+
echo Message >.git/TAG_EDITMSG
2195+
EOF
2196+
GIT_EDITOR=./fakeeditor git tag -a foo &&
2197+
test_path_is_missing .git/TAG_EDITMSG
2198+
'
2199+
21912200
test_done

0 commit comments

Comments
 (0)