X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-reflog.c;h=d95f515f2e32aa71c3a09fe5ed9486f352713360;hb=45e2b6140147d7a8b2cd68399e4d52d5d8d7b5be;hp=6b3667ef0ebdfc2b8b70b24e474b22989fbf0cb7;hpb=cd0843198fecf9faa6e82f6db15fc9c7ec31d3f4;p=git.git diff --git a/builtin-reflog.c b/builtin-reflog.c index 6b3667ef0..d95f515f2 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"); }