1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-08-16 18:30:30 +03:00

Update git-cliff/src/lib.rs

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
This commit is contained in:
DaniPopes 2024-06-24 20:27:22 +02:00 committed by GitHub
parent d98195bc4d
commit f4afa8cdaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -557,7 +557,7 @@ pub fn run(mut args: Opt) -> Result<()> {
}
if let Some(path) = &args.prepend {
changelog.prepend(fs::read_to_string(path)?, out)?;
changelog.prepend(fs::read_to_string(path)?, &mut File::create(path)?)?;
}
if args.output.is_some() || args.prepend.is_none() {
changelog.generate(out)?;