]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: fix inability to quit after closing another instance
authorOrgad Shaneh <orgads@gmail.com>
Tue, 7 Feb 2023 07:43:17 +0000 (09:43 +0200)
committerOrgad Shaneh <orgads@gmail.com>
Sun, 30 Jun 2024 06:15:04 +0000 (09:15 +0300)
commitf402c7941f19fa518e44b24bf31f3b6c3542c115
tree740e00df6e2332955c05232295a7ef9e7e513971
parentc1db9880936d752d8c2f56ab1aae01dd247de5d9
git-gui: fix inability to quit after closing another instance

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.

Signed-off-by: Orgad Shaneh <orgads@gmail.com>
git-gui.sh