X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin-tag.c;h=e54443009420d98dc281285e997b32f2a263b996;hb=77ce907786d2c4a7789e81c83a28e829c36fab30;hp=01e73747d02f384c5e31b846340a4b586c84aab3;hpb=a57ca9dd400c8459a3cd3d769bab317f57d1e9ac;p=git.git diff --git a/builtin-tag.c b/builtin-tag.c index 01e73747d..e54443009 100644 --- a/builtin-tag.c +++ b/builtin-tag.c @@ -338,7 +338,7 @@ static void create_tag(const unsigned char *object, const char *tag, exit(128); } if (path) { - unlink(path); + unlink_or_warn(path); free(path); } }