Block separate git directories during clone by Byron · Pull Request #2210 · gitpython-developers/GitPython
Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by Codex GPT-5. Created by Codex on behalf of Byron. Byron will review before this is ready to merge. Advisory GHSA-8mcc-hrx5-hvxc GHSA-8mcc-hrx5-hvxc reports that clone operations do not classify --separate-git-dir as unsafe. This change adds it to the existing clone option denylist, matching the init guard and the documented allow_unsafe_options contract. Advisory summary Severity: High Package: GitPython (pip) Affected versions: <= 3.1.58 Patched version: not yet assigned CVE: not yet assigned Validation test/test_clone.py: 21 passed, 1 skipped Regression coverage includes both Repo.clone() and Repo.clone_from(), through keyword and multi-option inputs. Git baseline: builtin/clone.c registers the option and t/t5601-clone.sh verifies redirected metadata behavior.
Skip to content