()
| 257 | txn: ReferenceTransaction | None = None |
| 258 | |
| 259 | def create_transaction() -> None: |
| 260 | nonlocal txn |
| 261 | txn = testrepo.transaction().__enter__() |
| 262 | ref_name = 'refs/heads/wrong-thread-test' |
| 263 | target = Oid(hex='5ebeeebb320790caf276b9fc8b24546d63316533') |
| 264 | testrepo.create_reference(ref_name, target) |
| 265 | txn.lock_ref(ref_name) |
| 266 | |
| 267 | # Create transaction in thread 1 |
| 268 | thread = threading.Thread(target=create_transaction) |
nothing calls this directly
no test coverage detected
searching dependent graphs…