On Sun, May 25, 2025 at 05:13:30PM +0300, Yonatan Roth wrote: > Hi, > > > Using a script we run the following set of git commands: > > git branch -a > > git remote -v > > git stash push --all --include-untracked > > git checkout test_git_ver > > git remote -v > > git fetch > > git status --branch --porcelain=v1 -u > > git checkout test_git_ver_workspace > > > > > After upgrading the git version to - *2.47.2*, we started getting the > following error: > > error: cannot lock ref 'HEAD': Unable to create '.../.git/*HEAD.lock*': > File exists. This sounds similar to the issue reported in [1], please see my reply there. I'll send a patch series the over the next days to address the issue. Patrick [1]: <CANi7bVAkNc+gY1NoXfJuDRjxjZLTgL8Lfn8_ZmWsvLAoiLPkNg@xxxxxxxxxxxxxx>