X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-tag.c;h=84db156e63681de6322019b9b9ffa15371c443b1;hb=0f639abb68b29f6d4cd9b89ecfb66e41136dcfa3;hp=b13fa34d8c59a9226599ba10b4d679f41ad230b0;hpb=35d2f73b999636c93049b2d7bed1458bcf2f9648;p=git.git diff --git a/builtin-tag.c b/builtin-tag.c index b13fa34d8..84db156e6 100644 --- a/builtin-tag.c +++ b/builtin-tag.c @@ -125,7 +125,7 @@ static int for_each_tag_name(const char **argv, each_tag_name_fn fn) static int delete_tag(const char *name, const char *ref, const unsigned char *sha1) { - if (delete_ref(ref, sha1)) + if (delete_ref(ref, sha1, 0)) return 1; printf("Deleted tag '%s'\n", name); return 0; @@ -283,7 +283,7 @@ static void create_tag(const unsigned char *object, const char *tag, int fd; /* write the template message before editing: */ - path = xstrdup(git_path("TAG_EDITMSG")); + path = git_pathdup("TAG_EDITMSG"); fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0600); if (fd < 0) die("could not create file '%s': %s",