Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6633d17
fix(node): bound REST blob reads
Sep 7, 2026
95d295c
test(node): cover blob authorization denials.
Sep 7, 2026
d824cfa
fix(node): Hide Git diagnostics from blob error responses.
Sep 9, 2026
3d7032b
fix(node): close REST blob admission and error gaps
Sep 9, 2026
fc2d043
fix(node): acquire blob permits pre-DB and cover route/fallback arms
Sep 10, 2026
c63527c
fix(node): confirm blob absence against a readable store
Sep 12, 2026
8977ed4
fix(node): bound REST blob response delivery
Sep 12, 2026
e1fe66e
test(git): distinguish every bounded ref fallback
Sep 12, 2026
4344b77
docs(node): describe the cat-file blob read path
Sep 12, 2026
49aebb2
fix(node): prevent caching of authorized blob content
Sep 12, 2026
c566455
fix(node): pin non-blob denial and map unreadable store to 503
Sep 12, 2026
df5a283
style(repos): simplify blob semaphore permit assertion for clippy
Sep 13, 2026
f0d0025
fix(git): classify unreadable store with ProbeError and tighten blob …
Sep 13, 2026
eb1222d
test(node): assert full blob admission release after read errors
Sep 14, 2026
c15acf5
test(git): require probe completion before reprobe budget denial
Sep 14, 2026
77e9b76
test(node): make Windows regression fixtures portable
Sep 14, 2026
5d238ca
fix(sync): use a supported Windows promisor blob filter
Sep 14, 2026
2c7f60a
test(git): route write-then-exec fixtures through write_blob_probe_fi…
Sep 15, 2026
2bb398e
test(sync): assert configured partialclonefilter and pin platform con…
Sep 15, 2026
bbab52e
test(api,git): close write-fd window in exec'd fixtures
Sep 17, 2026
ad003b3
fix(api): clamp authorize_repo_read with acquire timeout in get_blob
Sep 18, 2026
a2c996a
docs(config): describe the blob authorization deadline
Sep 20, 2026
5f588c1
test(api): bound the blob authorization timeout regression
Sep 20, 2026
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
Next Next commit
test(git): distinguish every bounded ref fallback
Use competing branches and a resolving HEAD so each fallback preference changes an observable test result.

Fixup for fc2d043.
Refs #407
  • Loading branch information
euxaristia
euxaristia committed Sep 12, 2026
commit e1fe66e57c3504c94480c6b88d45af0bdda09dac
33 changes: 30 additions & 3 deletions crates/gitlawb-node/src/git/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1321,11 +1321,15 @@ exit 1
run(&["add", "hello.txt"]);
run(&["commit", "-qm", "initial"]);
run(&["branch", "-M", "custom-feature"]);
run(&["branch", "aaa-earlier"]);
let deadline = std::time::Instant::now() + std::time::Duration::from_secs(30);
assert_eq!(
super::resolve_head_bounded("git", work, "aaa-earlier", deadline).unwrap(),
"HEAD"
);
// Detach or point HEAD to an unborn branch so HEAD itself does not resolve.
run(&["symbolic-ref", "HEAD", "refs/heads/unborn-branch"]);

let deadline = std::time::Instant::now() + std::time::Duration::from_secs(10);

// 1. Preferred branch arm: "custom-feature" resolves to refs/heads/custom-feature.
let resolved =
super::resolve_head_bounded("git", work, "custom-feature", deadline).unwrap();
Expand All @@ -1349,8 +1353,31 @@ exit 1
super::BoundedFileRead::Found(b"hello".to_vec())
);

// 3. for-each-ref fallback arm: rename "master" to "isolated-branch" (neither main, master, nor develop).
// Main must precede master, which must precede develop; all precede
// the alphabetically earlier branch chosen by for-each-ref.
run(&["branch", "develop", "master"]);
run(&["branch", "main", "master"]);
assert_eq!(
super::resolve_head_bounded("git", work, "nonexistent", deadline).unwrap(),
"refs/heads/main"
);
run(&["branch", "-m", "main", "z-retired-main"]);
assert_eq!(
super::resolve_head_bounded("git", work, "nonexistent", deadline).unwrap(),
"refs/heads/master"
);
run(&["branch", "-M", "master", "isolated-branch"]);
assert_eq!(
super::resolve_head_bounded("git", work, "nonexistent", deadline).unwrap(),
"refs/heads/develop"
);
run(&["branch", "-m", "develop", "z-retired-develop"]);
assert_eq!(
super::resolve_head_bounded("git", work, "nonexistent", deadline).unwrap(),
"refs/heads/aaa-earlier"
);
run(&["branch", "-m", "aaa-earlier", "z-retired-earlier"]);
// 3. for-each-ref fallback arm: only a nonstandard branch remains.
let resolved_isolated =
super::resolve_head_bounded("git", work, "nonexistent", deadline).unwrap();
assert_eq!(resolved_isolated, "refs/heads/isolated-branch");
Expand Down