Re: Possible race condition with git-rebase + .git/index.lock

2019-03-13 Thread Sergio Durigan Junior
On Wednesday, March 13 2019, Jeff King wrote: > On Wed, Mar 13, 2019 at 04:48:36PM -0400, Sergio Durigan Junior wrote: > >> Huh, I do have some of the files opened in Emacs! They're in >> background, but indeed, now that you mentioned I remember that Emacs >> keeps track of changes and invokes "g

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-13 Thread Jeff King
On Wed, Mar 13, 2019 at 04:48:36PM -0400, Sergio Durigan Junior wrote: > Huh, I do have some of the files opened in Emacs! They're in > background, but indeed, now that you mentioned I remember that Emacs > keeps track of changes and invokes "git status" sometimes. Next time I > see the bug, I'l

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-13 Thread Sergio Durigan Junior
On Wednesday, March 13 2019, Phillip Wood wrote: > Hi Sergio > > On 12/03/2019 19:32, Sergio Durigan Junior wrote: >> On Tuesday, March 12 2019, Elijah Newren wrote: >> >>> On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior >>> wrote: On Tuesday, March 12 2019, Duy Nguyen wrote:

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-13 Thread Phillip Wood
Hi Sergio On 12/03/2019 19:32, Sergio Durigan Junior wrote: On Tuesday, March 12 2019, Elijah Newren wrote: On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior wrote: On Tuesday, March 12 2019, Duy Nguyen wrote: On Tue, Mar 12, 2019 at 5:18 AM Sergio Durigan Junior wrote: This works wi

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-12 Thread Sergio Durigan Junior
On Tuesday, March 12 2019, Elijah Newren wrote: > On Tue, Mar 12, 2019 at 12:32 PM Sergio Durigan Junior > wrote: >> >> On Tuesday, March 12 2019, Elijah Newren wrote: >> >> > On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior >> > wrote: >> >> On Tuesday, March 12 2019, Duy Nguyen wrote: >>

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 12:32 PM Sergio Durigan Junior wrote: > > On Tuesday, March 12 2019, Elijah Newren wrote: > > > On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior > > wrote: > >> On Tuesday, March 12 2019, Duy Nguyen wrote: > >> > >> > On Tue, Mar 12, 2019 at 5:18 AM Sergio Durigan Jun

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-12 Thread Sergio Durigan Junior
On Tuesday, March 12 2019, Elijah Newren wrote: > On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior > wrote: >> On Tuesday, March 12 2019, Duy Nguyen wrote: >> >> > On Tue, Mar 12, 2019 at 5:18 AM Sergio Durigan Junior >> > wrote: >> >> This works without problems most of the time (well, usu

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior wrote: > On Tuesday, March 12 2019, Duy Nguyen wrote: > > > 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

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-12 Thread Sergio Durigan Junior
On Tuesday, March 12 2019, Duy Nguyen wrote: > 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: >

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-12 Thread Duy Nguyen
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:

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-11 Thread Sergio Durigan Junior
On Monday, March 11 2019, Eric Sunshine wrote: > On Mon, Mar 11, 2019 at 6:17 PM Sergio Durigan Junior > wrote: >> # git rebase origin/master >> ... >> Applying: commitX >> Applying: commitY >> Applying: commitZ >> fatal: Unable to create '/home/xyz/dir1/dir2/.git/index.lock': File ex

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-11 Thread Eric Sunshine
On Mon, Mar 11, 2019 at 6:17 PM Sergio Durigan Junior wrote: > # 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 i

Possible race condition with git-rebase + .git/index.lock

2019-03-11 Thread Sergio Durigan Junior
Hi there, I've been bit by this bug many times, and always forget to report it here, but this time I finally remembered. The scenario is this: - I have a local repository which tracks the upstream of the project. - I have 120+ local commits. - Every week or so, I have to rebase my local commit