diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2008-10-27 11:22:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-30 17:52:24 -0700 |
commit | a4f34cbb4cea1f0b0e625b528f269f4b517c64f8 (patch) | |
tree | d17b28dc28f2f182c169030bd618a625a65b865c /refs.c | |
parent | aba13e7c0566f578f866504bfcb388a72f7e5079 (diff) | |
download | git-a4f34cbb4cea1f0b0e625b528f269f4b517c64f8.tar.gz |
Use git_pathdup instead of xstrdup(git_path(...))
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1258,7 +1258,7 @@ int create_symref(const char *ref_target, const char *refs_heads_master, const char *lockpath; char ref[1000]; int fd, len, written; - char *git_HEAD = xstrdup(git_path("%s", ref_target)); + char *git_HEAD = git_pathdup("%s", ref_target); unsigned char old_sha1[20], new_sha1[20]; if (logmsg && read_ref(ref_target, old_sha1)) |