From d15296035ebfb5f006afac5ada559d2e158f84b9 Mon Sep 17 00:00:00 2001 From: eureka-cpu Date: Sun, 17 Nov 2024 03:02:01 -0800 Subject: [PATCH] fix init --title option failure when git user is not configured --- src/cmd/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/init.rs b/src/cmd/init.rs index 2c6415b6d9..f15fb96865 100644 --- a/src/cmd/init.rs +++ b/src/cmd/init.rs @@ -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...");