Skip to content

mdbook init --title <title> fails to include title if git user name is not configured #2485

@eureka-cpu

Description

@eureka-cpu

Problem

mdbook init --title <title> fails to include title if git user name is not configured

Steps

  1. inside some environment that doesn't have git user name configured
  2. mdbook init --title <title>
  3. cat book.toml, the title is not there
  4. do the above again after configuring git user name, the title is there now

Possible Solution(s)

Seems that there is a line in init.rs that only adds the config to the builder if the git user name is configured, even though it does a check before that for the title.

Notes

No response

Version

0.4.42

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions