fetch: use heap buffer to format reflog