Re: [PATCH 0/2] checkout: finish switch when tracking config cannot be written
"tsukasa-ino via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 9 quoted lines
> 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.