Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix check to detect git-lfs managed files that weren't checked out. #1733

Merged
merged 3 commits into from
Dec 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: assure date-tests won't fail over time.
Need to use absolute timestamps as it's impossible to control the system time.
Byron committed Dec 21, 2024
commit 14c3744a0bb5bf9e78055e0b86103a37a1f0c299
10 changes: 7 additions & 3 deletions gix/tests/gix/repository/mod.rs
Original file line number Diff line number Diff line change
@@ -27,14 +27,18 @@ mod revision {
fn date() -> crate::Result {
let repo = crate::named_repo("make_rev_parse_repo.sh")?;
let actual = repo
.rev_parse_single("old@{10 years ago}")
.rev_parse_single("old@{20 years ago}")
.expect("it returns the oldest possible rev when overshooting");
assert_eq!(actual, hex_to_id("be2f093f0588eaeb71e1eff7451b18c2a9b1d765"));

let actual = repo
.rev_parse_single("old@{1 month ago}")
.rev_parse_single("old@{1732184844}")
.expect("it finds something in the middle");
assert_eq!(actual, hex_to_id("b29405fe9147a3a366c4048fbe295ea04de40fa6"));
assert_eq!(
actual,
hex_to_id("b29405fe9147a3a366c4048fbe295ea04de40fa6"),
"It also figures out that we don't mean an index, but a date"
);
Ok(())
}
}