Skip to content

Commit edcfdc2

Browse files
authored
Merge pull request GitoxideLabs#2111 from handlerug/patch-ref-storage-newline
Persist object refs on disk with a trailing newline
2 parents fb78f1e + 6c0cc71 commit edcfdc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-ref/src/store/file/transaction/prepare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl Transaction<'_, '_> {
182182
let mut lock = lock.take().map_or_else(obtain_lock, Ok)?;
183183

184184
lock.with_mut(|file| match new {
185-
Target::Object(oid) => write!(file, "{oid}"),
185+
Target::Object(oid) => writeln!(file, "{oid}"),
186186
Target::Symbolic(name) => writeln!(file, "ref: {}", name.0),
187187
})?;
188188
Some(lock.close()?)

0 commit comments

Comments
 (0)