Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix init --title option failure when git user is not configured #2486

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

eureka-cpu
Copy link
Contributor

Closes #2485

Moves the line that adds the config to the builder outside of the if statement that checks for the git user name so that the init options passed prior to that check don't silently fail when the git user is not configured.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Nov 17, 2024
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I pushed a regression test for this, which hopefully should work reliably.

@ehuss ehuss added this pull request to the merge queue Nov 18, 2024
Merged via the queue into rust-lang:master with commit d107843 Nov 18, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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