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: git/git
base: ce65a188b15bef0ef68e81d5b083e7dda34ab2c9
Choose a base ref
...
head repository: git/git
compare: e0795e2c7912bc407e311b8cd3ae908bc354d8c9
Choose a head ref
  • 3 commits
  • 5 files changed
  • 2 contributors

Commits on Feb 27, 2024

  1. Merge branch 'ps/remote-helper-repo-initialization-fix' into ps/refta…

    …ble-repo-init-fix
    
    * ps/remote-helper-repo-initialization-fix:
      builtin/clone: allow remote helpers to detect repo
    gitster committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    b6818ff View commit details
    Browse the repository at this point in the history
  2. refs/reftable: don't fail empty transactions in repo without HEAD

    Under normal circumstances, it shouldn't ever happen that a repository
    has no HEAD reference. In fact, git-update-ref(1) would fail any request
    to delete the HEAD reference, and a newly initialized repository always
    pre-creates it, too.
    
    We have however changed git-clone(1) to partially initialize the
    refdb just up to the point where remote helpers can find the
    repository. With that change, we are going to run into a situation
    where repositories have no refs at all.
    
    Now there is a very particular edge case in this situation: when
    preparing an empty ref transacton, we end up returning whatever value
    `read_ref_without_reload()` returned to the caller. Under normal
    conditions this would be fine: "HEAD" should usually exist, and thus the
    function would return `0`. But if "HEAD" doesn't exist, the function
    returns a positive value which we end up returning to the caller.
    
    Fix this bug by resetting the return code to `0` and add a test.
    
    Signed-off-by: Patrick Steinhardt <[email protected]>
    Signed-off-by: Junio C Hamano <[email protected]>
    pks-t authored and gitster committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    b0f6b6b View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. t0610: remove unused variable assignment

    In b0f6b6b (refs/reftable: don't fail empty transactions in repo
    without HEAD, 2024-02-27), we have added a new test to t0610. This test
    contains a useless assignment to a variable that is never actually used.
    Remove it.
    
    Signed-off-by: Patrick Steinhardt <[email protected]>
    Signed-off-by: Junio C Hamano <[email protected]>
    pks-t authored and gitster committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    e0795e2 View commit details
    Browse the repository at this point in the history