Skip to content

Commit d152960

Browse files
committed
fix init --title option failure when git user is not configured
1 parent 9096012 commit d152960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ pub fn execute(args: &ArgMatches) -> Result<()> {
7474
if let Some(author) = get_author_name() {
7575
debug!("Obtained user name from gitconfig: {:?}", author);
7676
config.book.authors.push(author);
77-
builder.with_config(config);
7877
}
7978

79+
builder.with_config(config);
8080
builder.build()?;
8181
println!("\nAll done, no errors...");
8282

0 commit comments

Comments
 (0)