1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg/commands/oscommands
Jesse Duffield 16ed3c2377 Retry on index.lock error
I don't know why we're getting index.lock errors but they're impossile to stop
anyway given that other processes can be calling git commands. So we're retrying
a few times before re-raising. To do this we need to clone the command and the current
implementation for that is best-effort.

I do worry about the maintainability of that but we'll see how it goes.

Also, I thought you'd need to clone the task (if it exists) but now I think not;
as long as you don't call done twice on it you should be fine, and you shouldn't
be done'ing a task as part of running a command: that should happen higher up.
2023-07-10 19:13:18 +10:00
..
cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
cmd_obj_runner_default.go more refactoring 2022-01-09 14:09:53 +11:00
cmd_obj_runner_test.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
cmd_obj_runner_win.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
cmd_obj_runner.go Fix flakey pull_merge_conflict test 2023-07-10 17:12:34 +10:00
cmd_obj_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
cmd_obj.go Retry on index.lock error 2023-07-10 19:13:18 +10:00
copy.go Appease linter 2023-06-03 15:54:03 +10:00
dummies.go use tempdir in tests to prevent polluting worktree 2022-11-13 14:10:21 +11:00
fake_cmd_obj_runner.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
gui_io.go Use first class task objects instead of global counter 2023-07-09 21:30:19 +10:00
os_default_platform.go update tests 2022-01-04 09:07:15 +11:00
os_default_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
os_test.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
os_windows_test.go Fix windows tests 2023-04-13 13:14:00 +02:00
os_windows.go update tests 2022-01-04 09:07:15 +11:00
os.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00