diff options
author | Kristoffer Haugsbakk <code@khaugsbakk.name> | 2023-05-16 19:55:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-16 11:38:14 -0700 |
commit | 08c12ec1d0444c9ea7cf24b7157aa158f3f641f4 (patch) | |
tree | b2c76d08612fd5a3537c3eea934db564f015608e /commit.c | |
parent | 669c11de85d0071a31de0e49f6e5b602fd54a9ef (diff) |
tag: keep the message file in case ref transaction fails
The ref transaction can fail after the user has written their tag
message. In particular, if there exists a tag `foo/bar` and `git tag -a
foo` is said then the command will only fail once it tries to write
`refs/tags/foo`, which is after the file has been unlinked.
Hold on to the message file for a little longer so that it is not
unlinked before the fatal error occurs.
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions