Closed orgads closed 3 months ago
I cannot reproduce this on Linux. Is this a problem only on Windows? What else is necessary to observe the problem? I started git gui
twice, then closed them with Ctrl-Q without any error.
Maybe it's Windows only.
I cannot reproduce on Windows, either. What steps are necessary to observe the problem?
I found a method to reproduce this problem on Linux:
git gui
from a terminal..git/GITGUI_BCK
behind.git gui &
.At this point the first instance can be closed (it renames .git/GITGUI_BCK
to .git/GITGUI_MSG
), but the seconds brings an error message about the absent file and cannot be closed thereafter and must be killed from the command line.
The renaming that happens by the first instance is the correct action and need not be repeated by the second instance. It is the correct action to ignore the failed renaming.
On the other hand, the second instance could just edit the commit message again, wait two seconds to write GITGUI_BCK
, and then can be closed without failing. At this point, since the user has edited the message, it is again correct to preserve the edited version in GITGUI_MSG
.
Thanks, will pick this up.
Thank you. I was on vacation last week, so I couldn't reply.
If you open 2 git gui instances in the same directory, then close one of them and try to close the other, an error message pops up, saying: 'error renaming ".git/GITGUI_BCK": no such file or directory', and it is no longer possible to close the window ever.
Fix by catching this error, and proceeding even if the file no longer exists.