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:
parent
d98195bc4d
commit
f4afa8cdaf
@ -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)?;
|
||||
|
Loading…
Reference in New Issue
Block a user