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: SocketDev/socket-python-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8bf6f3b
Choose a base ref
...
head repository: SocketDev/socket-python-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3eb5433
Choose a head ref
  • 1 commit
  • 6 files changed
  • 2 contributors

Commits on Sep 30, 2026

  1. Detect non-main default branches in single-branch CI checkouts (#383)

    * Detect non-main default branches in single-branch CI checkouts
    
    actions/checkout fetches one branch and leaves no origin/HEAD. Since 2.6.6
    dropped the git fetch --all that recreated origin/HEAD, default-branch
    detection fell back to main/master, so scans on repos whose default branch
    is dev never became the branch head.
    
    When origin/HEAD is missing, read the default branch from the GitHub event
    payload, then from git ls-remote --symref origin HEAD, before the
    main/master fallback.
    
    * Bound the remote default-branch lookup on every platform
    
    GitPython's kill_after_timeout is rejected on Windows and relies on
    ps --ppid, which macOS lacks. It also leaves git-remote-https holding the
    output pipe after the parent dies, so a stalled remote blocked startup past
    the timeout.
    
    Run git ls-remote in its own process group and kill the whole group on
    timeout, with taskkill /T on Windows.
    
    * Read CI default-branch variables in the shared lookup
    
    GitLab's CI_DEFAULT_BRANCH and Buildkite's BUILDKITE_PIPELINE_DEFAULT_BRANCH
    only fed the final branch comparison. The commit-on-default check still
    went to the remote, so single-branch checkouts on those CIs paid for a
    git ls-remote call even when CI already knew the answer. Both variables
    now come first in get_default_branch_name.
    
    Also simplifies the remote lookup. start_new_session works on every
    platform because Windows ignores it and taskkill walks the tree by PID.
    The stalled-remote fixture is now a listener that never accepts, and the
    test clears proxy variables so it really waits for the timeout.
    
    * Avoid remote default-branch lookup for PR builds
    
    ---------
    
    Co-authored-by: lelia <[email protected]>
    mtorp and lelia authored Sep 30, 2026
    Configuration menu
    Copy the full SHA
    3eb5433 View commit details
    Browse the repository at this point in the history
Loading