Skip to content

Commit

Permalink
Don't assert on state that is based on a transaction that isn't commi…
Browse files Browse the repository at this point in the history
…tted
  • Loading branch information
Byron committed Nov 17, 2022
1 parent 58e1488 commit 00f6f7a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ fn conflicting_creation_without_packed_refs() -> crate::Result {

let case_sensitive = case_sensitive(dir.path());
match res {
Ok(_) if case_sensitive => {
assert!(store.reflog_exists("refs/a")?);
assert!(store.reflog_exists("refs/A")?);
}
Ok(_) if case_sensitive => {}
Ok(_) if !case_sensitive => panic!("should fail as 'a' and 'A' clash"),
Err(err) if case_sensitive => panic!(
"should work as case sensitivity allows 'a' and 'A' to coexist: {:?}",
Expand Down

0 comments on commit 00f6f7a

Please sign in to comment.