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 /builtin-reflog.c | |
parent | git_pathdup: returns xstrdup-ed copy of the formatted path (diff) | |
download | tgif-a4f34cbb4cea1f0b0e625b528f269f4b517c64f8.tar.xz |
Use git_pathdup instead of xstrdup(git_path(...))
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-reflog.c')
-rw-r--r-- | builtin-reflog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-reflog.c b/builtin-reflog.c index 196fa03b7f..da96da317b 100644 --- a/builtin-reflog.c +++ b/builtin-reflog.c @@ -277,11 +277,11 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused, lock = lock_any_ref_for_update(ref, sha1, 0); if (!lock) return error("cannot lock ref '%s'", ref); - log_file = xstrdup(git_path("logs/%s", ref)); + log_file = git_pathdup("logs/%s", ref); if (!file_exists(log_file)) goto finish; if (!cmd->dry_run) { - newlog_path = xstrdup(git_path("logs/%s.lock", ref)); + newlog_path = git_pathdup("logs/%s.lock", ref); cb.newlog = fopen(newlog_path, "w"); } |