Skip to content

Issue with "Pull Origin" #22807

Closed as not planned
Closed as not planned

Description

@behr-bko

The problem

Hi there,
After I upgraded my Mac laptop to Mac OS Tahoe 26.6.2, whenever I try to pull from origin using GitHub Desktop, I am having following error. The only way I can fix this problem is to clone the repository again. Your attention to this issue will be appreciated.

From https://github.com/mascocg/behr-aem-edge
dc4b3257..1a21923a feature/BEHR-STRY0347072-How-To-Detail -> origin/feature/BEHR-STRY0347072-How-To-Detail
56146e0e..ec63afe6 feature/Product-Sizes -> origin/feature/Product-Sizes

  • [new branch] feature/STRY0347066 -> origin/feature/STRY0347066
  • [new branch] feature/edge-optimize-integration -> origin/feature/edge-optimize-integration
    error: fetching ref refs/remotes/origin/feature/BEHR-STRY0347072-How-To-Detail failed: incorrect old value provided
    error: fetching ref refs/remotes/origin/feature/Product-Sizes failed: incorrect old value provided

Release version

Version 3.6.4 (arm64)

Operating system

Mac OS Tahoe 26.6.2

Steps to reproduce the behavior

  1. Select a repository
  2. Click on "Pull Origin"

Log files

No response

Screenshots

From https://github.com/mascocg/behr-aem-edge
dc4b3257..1a21923a feature/BEHR-STRY0347072-How-To-Detail -> origin/feature/BEHR-STRY0347072-How-To-Detail
56146e0e..ec63afe6 feature/Product-Sizes -> origin/feature/Product-Sizes

  • [new branch] feature/STRY0347066 -> origin/feature/STRY0347066
  • [new branch] feature/edge-optimize-integration -> origin/feature/edge-optimize-integration
    error: fetching ref refs/remotes/origin/feature/BEHR-STRY0347072-How-To-Detail failed: incorrect old value provided
    error: fetching ref refs/remotes/origin/feature/Product-Sizes failed: incorrect old value provided

Additional context

No response

Activity

  1. desktop-triage commented on Sep 2, 2026

    @desktop-triage

    Triage summary: This is likely a genuine bug — the reporter provides the exact git error (error: fetching ref ... failed: incorrect old value provided) that occurs during a normal "Pull origin" operation, with app version (3.6.4) and OS (macOS Tahoe 26.6.2) specified. I found no existing open or closed issue matching this specific "incorrect old value provided" error text, so this does not appear to be a duplicate. Suggesting bug / priority-3 (single report, workaround exists via re-clone).

    Initial hypothesis: The error incorrect old value provided is git's own ref-transaction safety check (used when updating refs/remotes/origin/*) rejecting an update because the actual current value of the local remote-tracking ref doesn't match what git expected before applying the fetched update — this happens at the git-command level, not in Desktop's own ref-update code. Desktop's fetch invocation itself is unremarkable: it builds fetch args and calls git fetch normally (see fetch.ts lines 1–90 for the argument construction that is passed straight through to dugite's git binary). This class of error most commonly arises when the local .git/refs/remotes/... ref (or the relevant entry in packed-refs) has become out of sync with git's expectation — for example after an interrupted previous fetch/gc, a stale lock file, or third-party interference with the .git directory (cloud-sync tools, backup/indexing software, or antivirus scanning that touches ref files mid-operation). The timing correlation with a macOS upgrade (Tahoe 26.6.2) raises the possibility that a system service (e.g. Spotlight indexing, Time Machine, or a security tool) is now touching the repository's .git folder during fetch in a way it didn't before, though this cannot be confirmed without repo-level diagnostics (e.g. contents of .git/packed-refs, .git/refs/remotes/origin/, and any stale .lock files) that were not provided. A full app log (~/Library/Application Support/GitHub Desktop/logs/) capturing the exact fetch invocation and git exit output would help confirm whether this is a stale/corrupted ref state versus a Desktop-specific fetch argument issue.

    Generated by Issue Triage (skills-driven) for #22807 · auto · 29 AIC · ⌖ 2.37 AIC · ⊞ 9.1K · ◷

  2. sergiou87 commented on Sep 3, 2026

    @sergiou87
    Member

    Could you upload the log file from GitHub Desktop so that I could get some more information about this error? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs.
    The log files are created daily -- please upload a log file as an attachment from a day where you experienced the issue.

  3. added
    more-info-needed
    on Sep 3, 2026
  4. behr-bko commented on Sep 3, 2026

    @behr-bko
    Author
  5. removed
    more-info-needed
    on Sep 3, 2026
  6. sergiou87 commented on Sep 4, 2026

    @sergiou87
    Member

    Sorry @behr-bko but uploading files is not possible when replying via email! I'm afraid you have to do that from the website 😅

  7. added
    more-info-needed
    on Sep 4, 2026
  8. behr-bko commented on Sep 4, 2026

    @behr-bko
    Author
  9. removed
    more-info-needed
    on Sep 4, 2026
  10. sergiou87 commented on Sep 4, 2026

    @sergiou87
    Member

    Thanks for providing the logs! I think this is cause of this problem:

    You're on a case-insensitive filesystem, and the remote you are
    trying to fetch from has references that only differ in casing.
    

    This means the remote repository contains branches whose names differ only by capitalization—for example, feature/example and feature/Example. macOS normally uses a case-insensitive filesystem, so Git cannot store both remote-tracking branches locally.

    The later incorrect old value provided messages appear to be a follow-on effect from that failed fetch, rather than an authentication or GitHub Desktop problem.

    You can identify the conflicting branch names by opening the repository in Terminal and running:

    git ls-remote --heads origin |
    awk '{
      key = tolower($2)
      refs[key] = refs[key] "\n  " $2
      count[key]++
    }
    END {
      for (key in count)
        if (count[key] > 1)
          print refs[key]
    }'

    Once identified, please rename or delete one branch from each conflicting pair on GitHub. If performing a capitalization-only rename, rename it to a temporary name first, then to the final name.

    After fixing the remote branches, run:

    git fetch --prune origin

    If the incorrect old value provided error remains, clear the affected cached remote-tracking refs and fetch again:

    git update-ref -d refs/remotes/origin/feature/BEHR-STRY0347072-How-To-Detail
    git update-ref -d refs/remotes/origin/feature/Product-Sizes
    git fetch --prune origin

    These update-ref commands remove only the local cached origin/* references; they do not delete branches or commits from GitHub.

    The macOS update was likely coincidental: the logs show successful fetches earlier that day, with the failure beginning after new or updated remote branches appeared.

    Please let me know if that helps 🙏

  11. added
    more-info-needed
    on Sep 4, 2026
  12. behr-bko commented on Sep 4, 2026

    @behr-bko
    Author
  13. removed
    more-info-needed
    on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions