commit | a4f34cbb4cea1f0b0e625b528f269f4b517c64f8 | [log] [tgz] |
---|---|---|
author | Alex Riesen <raa.lkml@gmail.com> | Mon Oct 27 11:22:09 2008 +0100 |
committer | Junio C Hamano <gitster@pobox.com> | Thu Oct 30 17:52:24 2008 -0700 |
tree | d17b28dc28f2f182c169030bd618a625a65b865c | |
parent | aba13e7c0566f578f866504bfcb388a72f7e5079 [diff] [blame] |
Use git_pathdup instead of xstrdup(git_path(...)) Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/builtin-tag.c b/builtin-tag.c index f2853d0..6c6c351 100644 --- a/builtin-tag.c +++ b/builtin-tag.c
@@ -283,7 +283,7 @@ 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",