diff options
Diffstat (limited to 't/helper/test-ref-store.c')
-rw-r--r-- | t/helper/test-ref-store.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index 8bca4f2af1..24dd4bec08 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -209,9 +209,9 @@ static int each_reflog(struct object_id *old_oid, struct object_id *new_oid, const char *committer, timestamp_t timestamp, int tz, const char *msg, void *cb_data) { - printf("%s %s %s %"PRItime" %d %s\n", - oid_to_hex(old_oid), oid_to_hex(new_oid), - committer, timestamp, tz, msg); + printf("%s %s %s %" PRItime " %+05d%s%s", oid_to_hex(old_oid), + oid_to_hex(new_oid), committer, timestamp, tz, + *msg == '\n' ? "" : "\t", msg); return 0; } @@ -241,9 +241,8 @@ static int cmd_create_reflog(struct ref_store *refs, const char **argv) const char *refname = notnull(*argv++, "refname"); struct strbuf err = STRBUF_INIT; int ret; - int force_create = 1; - ret = refs_create_reflog(refs, refname, force_create, &err); + ret = refs_create_reflog(refs, refname, &err); if (err.len) puts(err.buf); return ret; |