Skip to content

Commit

Permalink
fix init --title option failure when git user is not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
eureka-cpu committed Nov 17, 2024
1 parent 9096012 commit d152960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ pub fn execute(args: &ArgMatches) -> Result<()> {
if let Some(author) = get_author_name() {
debug!("Obtained user name from gitconfig: {:?}", author);
config.book.authors.push(author);
builder.with_config(config);
}

builder.with_config(config);
builder.build()?;
println!("\nAll done, no errors...");

Expand Down

0 comments on commit d152960

Please sign in to comment.