Skip to content

Commit

Permalink
Merge pull request #1602 from joscha/patch-1
Browse files Browse the repository at this point in the history
fix: ensure append is on newline with existing `.gitattributes`
  • Loading branch information
domenkozar authored Nov 21, 2024
2 parents 6ff1e5f + 97048d1 commit 24f0aac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions devenv/src/devenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl Devenv {
std::fs::OpenOptions::new()
.append(true)
.open(&target_path)
.and_then(|mut file| file.write("\n"))
.and_then(|mut file| file.write_all(path.contents()))
.expect("Failed to append to existing file");
} else {
Expand Down

0 comments on commit 24f0aac

Please sign in to comment.