We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc7343c + df91659 commit d8fbe1eCopy full SHA for d8fbe1e
gix-ref/tests/refs/file/transaction/prepare_and_commit/create_or_update/mod.rs
@@ -755,6 +755,11 @@ fn packed_refs_are_looked_up_when_checking_existing_values() -> crate::Result {
755
Some(new_id.as_ref()),
756
"the new id was written to the loose ref"
757
);
758
+ assert_eq!(
759
+ std::fs::read_to_string(store.common_dir_resolved().join("refs/heads/main"))?,
760
+ format!("{}\n", new_id.to_hex()),
761
+ "the loose ref is stored on disk as the full OID followed by a newline"
762
+ );
763
Ok(())
764
}
765
0 commit comments