From: Duy Nguyen Date: Tue, 12 Mar 2019 10:28:15 GMT Subject: Re: Possible race condition with git-rebase + .git/index.lock Message-ID: In-Reply-To: <87k1h55bx0.fsf@sergiodj.net> On Tue, Mar 12, 2019 at 5:18 AM Sergio Durigan Junior wrote: > This works without problems most of the time (well, usually there are > conflicts and all, but that's a burden I have to carry). However, > sometimes I notice that git fails with: > > # git rebase origin/master > ... > Applying: commitX > Applying: commitY > Applying: commitZ > fatal: Unable to create '/home/xyz/dir1/dir2/.git/index.lock': File exists. > > The first thing I did was to check whether the index.lock file existed, > but it doesn't. Is the output this clean? What I'm looking for is signs of automatic garbage collection kicking in the middle of the rebase. Something like "Auto packing the repository blah blah for optimum performance". -- Duy