You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 31cb7c8
Browse filesBrowse the repository at this point in the historyBrowse files
- [P2] Reject valueless submodule branch settings — git/objects/submodule/base.py:1934-1936
When a bare `branch` key replaces `branch = dev`, both backends now interpret
it as `refs/heads/master`. The baseline Git rejects the malformed key, but if
`origin/master` exists, `Repo.submodule_update(to_latest_revision=True)` can
now switch the submodule to `master` and advance it. Use the default only for an
absent key and report an explicit valueless key as invalid in both listing and
rereads.
- [P3] Drop redundant commits from the branch reread test — test/test_submodule.py:2111-2112
The fixture already commits `.gitmodules` and the gitlink, and
`set_parent_commit(repo.head.commit)` rereads the working-tree file,
not the committed blob. The six add/commit pairs added 96 Git launches
in a local CLI run; all six cases still passed without them. Reuse
the fixture's committed state and leave the per-case edits unstaged.
Assisted-by: GPT 6.2 Sol
Co-authored-by: GPT 6.2 Sol <[email protected]>
| Submodule enumeration and cached fields | Dedicated native `.gitmodules` parser over the existing worktree/blob source, with raw path/URL/branch values | Non-UTF-8 subsection names, other/duplicate sections, ambiguous brackets, missing/implicit fields and parser errors; GIX-12. Lines other than comments, bare headers and single settings; GIX-35|
394
+
| Submodule enumeration and cached fields | Dedicated native `.gitmodules` parser over the existing worktree/blob source, with raw path/URL/branch values | Non-UTF-8 subsection names, other/duplicate sections, ambiguous brackets, missing/implicit fields and native parser errors (GIX-12); possible valueless branch keys (GIX-45)|
395
395
| Commit hooks | No bound native lookup/execution API | All hooks, including absent hooks; GIX-23 |
396
396
| Worktree inventory, `worktree list`| Main and linked worktree metadata, including bare main repositories and locks | Prunable entries; GIX-14 |
397
397
|`Repo.merge_base`, `Repo.is_ancestor`| Native graph queries for two revisions | Octopus/fork-point and other options |
@@ -1018,6 +1018,7 @@ identify the historical fixture where needed.
1018
1018
| GIX-42 | Bug (open) | With Git 2.54.0 and GixPython 0.4.0, `commit.sh negative-date` stores `-1 +0200 1700000000 -0500` in the author, committer and tagger identities. Git's `split_ident_line()` requires unsigned timestamp digits, so `git show --format=%ad --date=raw` reports no date and GitPython's CLI path returns `(0, 0)`. Native signature accessors expose `(-1, +7200)` as seconds and offset east of UTC. | Provide Git-compatible negative timestamp handling. `object_metadata()` retains CLI for negative dates. `test_deserialization_negative_timestamp_matches_git` verifies both object kinds. |
1019
1019
| GIX-43 | Bug (open) | With Git 2.54.0 and GixPython 0.4.0, `commit.sh spaced-email` stores spaces inside the email brackets ahead of a date with trailing fields. Git's `%ae` and `%ce` preserve these bytes, but native commit author and committer accessors trim them. The native tagger accessor preserves the spaces. | Expose a signature identity that preserves the stored fields with Git-compatible delimiters. `object_metadata()` uses the existing CLI fallback if the native identity fails the raw header comparison. `test_deserialization_preserves_email_whitespace` verifies author, committer and tagger properties. |
1020
1020
| GIX-44 | Bug (open) | With Git 2.54.0 and GixPython 0.3.0, the `branch-dot-alias` case of `submodule-cases.sh` sets `HEAD` to `refs/heads/dev`, which points to `refs/heads/master`. `Repository.head_name()` and `Repository.head_ref().name()` return `refs/heads/dev`. `git symbolic-ref HEAD` returns `refs/heads/master`, and `git submodule update --remote` selects `origin/master` for `branch = .`. `test_update_to_latest_revision_follows_superproject_branch_alias` verifies branch selection on clone and later updates. Redirect `dev` to `refs/heads/missing` and Git returns that terminal name, while `Reference.follow_to_object()` raises a missing-ref error. | Expose the terminal symbolic target with Git-compatible handling of unborn, detached and invalid references. `Submodule._branch_for_update()` uses recursive `git symbolic-ref --quiet -- HEAD` through the CLI fallback. |
1021
+
| GIX-45 | Bug (open) | Git 2.54.0 `submodule update --remote --no-fetch` rejects a bare `branch` key in `.gitmodules` with `missing value for 'submodule.module.branch'`, including before or after `branch = dev`. In GixPython 0.3.0 and 0.4.0, `ModulesFile.from_bytes()` accepts the bare key and `ModulesFile.branch()` returns `None` for an absent or single bare key. `ConfigFile.boolean()` distinguishes these two inputs with `None` and `True`, respectively. When the bare key precedes `branch = dev`, both `ModulesFile.branch().name_bytes()` and `ConfigFile.string()` return `b"dev"`. For an explicit `branch =` with an `origin` remote, Git attempts to resolve `refs/remotes/origin/`, `ModulesFile.branch().name_bytes()` returns `b"HEAD"`, and `ConfigFile.string()` returns `b""`. | Reject valueless branches in a Git-compatible mode or expose all raw values, including implicit ones. `submodule_config()` falls back to the Git config reader for possible bare `branch` keys and uses `ConfigFile.string()` for assigned values. `test_valueless_branch_is_invalid` covers listing and rereads with a single bare key and one followed by an assignment. |
1021
1022
1022
1023
GIX-14 also covers configured worktree symlink resolution. On macOS with
1023
1024
GixPython 0.3.0, CPython 3.12.14 and Git 2.54.0, set a submodule's
0 commit comments