From: Junio C Hamano Date: Fri, 23 Oct 2026 18:30:49 GMT Subject: Re: [PATCH 0/2] checkout: finish switch when tracking config cannot be written Message-ID: In-Reply-To: "tsukasa-ino via GitGitGadget" writes: > When the tracking config cannot be written (for example, because > .git/config.lock exists), git switch -c and checkout -b stop halfway. The > worktree, the index and the new branch ref are already updated, but HEAD > stays on the old branch, and the changes are left staged. > > * 1/2 makes setup_tracking() return an error instead of calling exit(). No > behavior change yet. > * 2/2 makes switch and checkout finish the switch and exit with status 0, > as push -u, clone and fetch already do. git branch still fails. Thanks, queued.