gitx icon indicating copy to clipboard operation
gitx copied to clipboard

GitX appears to be (briefly) creating lock files, interfering with command line use.

Open bonkydog opened this issue 9 years ago • 7 comments

(Sorry for this almost comically vague bug report, but...)

When I do multi commit rebases on the command line, often the process gets interrupted with this message:

fatal: Unable to create '/Users/bonkydog/my-project-directory/.git/index.lock': File exists.

This only happens when GitX is running. If I close GitX, it never happens.

Is GitX possibly creating, then removing lock files while it sits there, possibly as some kind of polling behavior?

bonkydog avatar Jun 11 '15 21:06 bonkydog

I have seen this as well. Funny enough, it never happened on my old machine, but happens almost every time on my new Mac. Extremely annoying.

dragos avatar Jul 10 '15 11:07 dragos

Maybe a Yosemite thing?

bonkydog avatar Jul 11 '15 05:07 bonkydog

This happens to me a lot as well. I am in the habit of closing gitx, doing my rebase, and then reopening gitx.

josharian avatar Jul 29 '15 19:07 josharian

Workaround: disable the autorefresh setting in preferences ("Watch for changes in repository") and do it manually when you switch back to GitX (via ⌘R). This uses the user as some kind of mutex but that's the only way to do rebases without weirdness happening.

tiennou avatar Aug 17 '15 11:08 tiennou

Maybe an option to only automagically refresh when the window has focus? Would save me a lot of ⌘R'ing :D

grum avatar Sep 08 '15 20:09 grum

What would happen is you start your rebase on the CLI, switch to GitX because ~~OH MY GOD I CAN'T STOP IT~~ you want to check your probable next step/refer to history/whatever and boom. Your rebase see the lock, and you're back at square one.

tiennou avatar Sep 08 '15 21:09 tiennou

I think had the same problem but it automagically fixed itself with one of the last Git 2.5.x releases when they introduced some retry mechanism?

rbq avatar Oct 06 '15 07:10 rbq