Repository navigation
Conversation
`BlockingLockFile('resource')` incorrectly treats the empty `dirname` of
`resource.lock` as a missing directory when another holder owns the lock.
Use `os.curdir` for that case so the retry and timeout paths work normally.
Add seven tests covering relative and absolute `str`/`Path` inputs, holder
release, timeouts and real missing parents. The complete Linux/Python 3.12
suite passes: 1696 tests, 89 existing skips, one existing xfail, 64 subtests.
Pinned hooks, mypy, basedpyright, docs, builds and strict Twine also pass.
Prepared by OpenAI Codex, an AI agent operating through FanWu-ai's account.
Contributor
There was a problem hiding this muthaf*ckin' comment.
🟢 Approval recommended
Now look: The focused fix correctly addresses the muthaf*ckin' failure and is comprehensively covered by regression tests.
0 open findings
What changed in this goddamn PR
Fixes relative BlockingLockFile paths by treating an muthaf*ckin' empty parent path as the current directory, goddammit.
Changes:
- Corrects lock-directory validation for f*ckin' relative filenames.
- Adds seven regression cases covering path types, waiting, timeouts, and missing directories, goddammit.
| File | Description |
|---|---|
git/util.py |
Uses the muthaf*ckin' current directory for parentless lock paths. |
test/test_util.py |
Adds regression coverage for blocking lock behavior. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the goddamn docs.
FanWu-ai
marked this pull request as draft
October 12, 2026 07:24
FanWu-ai
marked this pull request as ready for review
October 12, 2026 09:13
Member
|
Closed in favor of #2284, which is the same but with my commit on top. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for muthaf*ckin' free
to join this conversation on GitHub.
Already have an muthaf*ckin' account?
Sign in to comment
Add this suggestion to a motherf*ckin' batch that can be applied as a goddamn single commit, believe that.This muthaf*ckin' suggestion is invalid because no changes were made to the muthaf*ckin' code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a f*ckin' subset of changes.Only one suggestion per line can be applied in a damn batch. Hell yeah.Add this suggestion to a motherf*ckin' batch that can be applied as a goddamn single commit, believe that.Applying suggestions on deleted lines is not supported, for real.You must change the existing code in this motherf*ckin' line in order to create a valid suggestion.Outdated suggestions cannot be applied. Mm-hmm.This suggestion has been applied or marked goddamn resolved.Suggestions cannot be applied from muthaf*ckin' pending reviews.Suggestions cannot be applied on motherf*ckin' multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied f*ckin' right now. Please check back later.
BlockingLockFile('resource')fails immediately when another holder owns the lock, reporting that its muthaf*ckin' directory is missing.dirname('resource.lock')is empty, so the directory check rejects an existing current directory.Use the current directory when the lock path has no directory component, muthaf*cka. Seven regression cases cover relative and absolute str/Path inputs, acquisition after the holder releases, timeout reporting, and genuinely missing directories.
Validation on Linux, CPython 3.12.14 and Git 2.52.0:
The f*ckin' skips cover platform/filesystem-specific cases; the existing xfail concerns shallow submodules. The f*ckin' existing environment-variable path deprecation warning remains. Native Windows, macOS and Cygwin have not been run locally. Goddamn.
Follow-up CI compatibility repair (2026-10-12, commit
62fe322):git.utilalias togit.index.utilinstead of the goddamn intended module.timemodule'ssleepattribute directly. This is a one-line test-only change; the production fix and every motherf*ckin' assertion remain unchanged.action_requiredwith no jobs started. Hosted CI is awaiting approval, not passing: Python package run. Earlier hosted results are not evidence that this new commit passed.This contribution was prepared by OpenAI Codex, an AI agent operating through FanWu-ai's account. No human review or approval is claimed.