Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gitpython-developers/GitPython
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.1.49
Choose a base ref
...
head repository: gitpython-developers/GitPython
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 13 commits
  • 9 files changed
  • 6 contributors

Commits on Apr 22, 2026

  1. fix: support Repo() autodiscovery from linked worktree GIT_DIR

    Handle linked worktree git directories when GIT_DIR points to .git/worktrees/<name>.
    Previously Repo() could fail with InvalidGitRepositoryError in this scenario,
    while Repo(os.getcwd()) worked correctly.
    
    Add regression test to cover autodiscovery in linked worktrees.
    meliezer committed Apr 22, 2026
    Configuration menu
    Copy the full SHA
    4c6ec60 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2026

  1. Bump https://github.com/astral-sh/ruff-pre-commit

    Bumps the pre-commit group with 1 update: [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit).
    
    
    Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.8 to 0.15.12
    - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases)
    - [Commits](astral-sh/ruff-pre-commit@v0.15.8...v0.15.12)
    
    ---
    updated-dependencies:
    - dependency-name: https://github.com/astral-sh/ruff-pre-commit
      dependency-version: 0.15.12
      dependency-type: direct:production
      dependency-group: pre-commit
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 1, 2026
    Configuration menu
    Copy the full SHA
    b17f113 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2026

  1. Xfail Windows symlink-capable index mutation test

    The Windows CI jobs for PR 2140 failed in
    test/test_index.py::TestIndex::test_index_mutation. The failing checkout path
    creates my_fake_symlink and Git for Windows 2.54 reports a symlink warning
    before GitPython raises GitCommandError. This is the same unsupported Windows
    symlink behavior that the test already marks as an expected failure when
    core.symlinks is true.
    
    Detect Windows hosts that can create symlinks directly and include
    GitCommandError in the expected failure types, so symlink-capable Windows
    runners do not fail this unrelated Dependabot PR.
    
    Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
    codex and Byron committed May 3, 2026
    Configuration menu
    Copy the full SHA
    714e2e1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2140 from gitpython-developers/dependabot/pre_com…

    …mit/pre-commit-c64bca4cd5
    
    Bump https://github.com/astral-sh/ruff-pre-commit from v0.15.8 to 0.15.12 in the pre-commit group
    Byron authored May 3, 2026
    Configuration menu
    Copy the full SHA
    9e94459 View commit details
    Browse the repository at this point in the history
  3. Bump git/ext/gitdb from 335c0f6 to 53c94d6

    Bumps [git/ext/gitdb](https://github.com/gitpython-developers/gitdb) from `335c0f6` to `53c94d6`.
    - [Release notes](https://github.com/gitpython-developers/gitdb/releases)
    - [Commits](gitpython-developers/gitdb@335c0f6...53c94d6)
    
    ---
    updated-dependencies:
    - dependency-name: git/ext/gitdb
      dependency-version: 53c94d682b541595918cea6fc2e96bb900eb0e8c
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 3, 2026
    Configuration menu
    Copy the full SHA
    4e8cd45 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2141 from gitpython-developers/dependabot/submodu…

    …les/git/ext/gitdb-53c94d6
    
    Bump git/ext/gitdb from `335c0f6` to `53c94d6`
    EliahKagan authored May 3, 2026
    Configuration menu
    Copy the full SHA
    b7f5fde View commit details
    Browse the repository at this point in the history

Commits on May 6, 2026

  1. Merge pull request #2128 from meliezer/fix-worktree-git-dir

    Fix Repo() autodiscovery in linked worktrees when GIT_DIR is set
    Byron authored May 6, 2026
    Configuration menu
    Copy the full SHA
    1085a7c View commit details
    Browse the repository at this point in the history
  2. Validate config key section names before writing

    GitConfigParser already rejected CR, LF, and NUL in config values before
    writing, but section and option names could still reach configparser. Because
    GitPython writes section headers itself, a newline-bearing section name could
    split the output into additional headers.
    
    Reject CR, LF, and NUL in section and option names on write paths that create
    or set config keys: add_section(), set(), set_value(), add_value(), and
    rename_section() destinations. This matches Git config key validation behavior;
    Git source commit 94f057755b7941b321fd11fec1b2e3ca5313a4e0 reports invalid keys
    containing newlines from config.c, and local git 2.50.1 rejects newline-bearing
    config keys.
    
    Add a regression test covering unsafe section and option names while preserving
    safe writes.
    
    Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
    codex and Byron committed May 6, 2026
    Configuration menu
    Copy the full SHA
    5453842 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #2142 from gitpython-developers/fix-validate-confi…

    …g-key-newlines
    
    Validate config key names before writing
    Byron authored May 6, 2026
    Configuration menu
    Copy the full SHA
    d7b029f View commit details
    Browse the repository at this point in the history
  4. bump version to 3.1.50

    Byron committed May 6, 2026
    Configuration menu
    Copy the full SHA
    5a294a6 View commit details
    Browse the repository at this point in the history
  5. Add AI-disclusure and quality requirements to the contribution guidel…

    …ines.
    
    Co-authored-by: GPT 5.5 <codex@openai.com>
    Byron and codex committed May 6, 2026
    Configuration menu
    Copy the full SHA
    4941c31 View commit details
    Browse the repository at this point in the history
  6. Separate quality paragraphs and adjust decline wording

    Split the quality-expectations section into two paragraphs (the warning
    about low-quality contributions being declined was visually merged with
    the preceding paragraph). Replace "and the pull request closed without
    warning" with a note that maintainers may not always be able to provide
    detailed feedback, which conveys the same practical reality.
    
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    EliahKagan and claude committed May 6, 2026
    Configuration menu
    Copy the full SHA
    92ff6df View commit details
    Browse the repository at this point in the history
  7. Merge pull request #2143 from gitpython-developers/contrbuting

    Add AI-disclosure and quality requirements to the contribution guidelines
    Byron authored May 6, 2026
    Configuration menu
    Copy the full SHA
    c7648c0 View commit details
    Browse the repository at this point in the history
Loading