Repository navigation
Description
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
- Select a repository
- 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
desktop-triage commentedon Sep 2, 2026
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. Suggestingbug/priority-3(single report, workaround exists via re-clone).Initial hypothesis: The error
incorrect old value providedis git's own ref-transaction safety check (used when updatingrefs/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 callsgit fetchnormally (seefetch.tslines 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 inpacked-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.gitdirectory (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.gitfolder 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.lockfiles) 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.sergiou87 commentedon Sep 3, 2026
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.
behr-bko commentedon Sep 3, 2026
sergiou87 commentedon Sep 4, 2026
Sorry @behr-bko but uploading files is not possible when replying via email! I'm afraid you have to do that from the website 😅
behr-bko commentedon Sep 4, 2026
Here you go.
2026-09-02.desktop.production.log
sergiou87 commentedon Sep 4, 2026
Thanks for providing the logs! I think this is cause of this problem:
This means the remote repository contains branches whose names differ only by capitalization—for example,
feature/exampleandfeature/Example. macOS normally uses a case-insensitive filesystem, so Git cannot store both remote-tracking branches locally.The later
incorrect old value providedmessages 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:
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:
If the
incorrect old value providederror remains, clear the affected cached remote-tracking refs and fetch again:These
update-refcommands remove only the local cachedorigin/*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 🙏
behr-bko commentedon Sep 4, 2026