mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
nixos/tests/forgejo: fix after git v2.47 bump
git v2.47.0 made changes to trace2's nesting. trace2.eventNesting (GIT_TRACE2_EVENT_NESTING) defaults to 2, but the nested region we are after gained a level and is now at level 3 instead of 2. eventNesting describes the maximum nesting level to be logged. So to make it log the negotated-version in connect.c again, we increase the default by one, from 2 to 3.
This commit is contained in:
parent
de2fa53b5b
commit
9a4e945ceb
@ -188,7 +188,7 @@ let
|
||||
assert "hello world" == client.succeed("cat /tmp/repo-clone/testfile").strip()
|
||||
|
||||
with subtest("Testing git protocol version=2 over ssh"):
|
||||
git_protocol = client.succeed("GIT_TRACE2_EVENT=true git -C /tmp/repo-clone fetch |& grep negotiated-version")
|
||||
git_protocol = client.succeed("GIT_TRACE2_EVENT=true GIT_TRACE2_EVENT_NESTING=3 git -C /tmp/repo-clone fetch |& grep negotiated-version")
|
||||
version = json.loads(git_protocol).get("value")
|
||||
assert version == "2", f"git did not negotiate protocol version 2, but version {version} instead."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user