1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Remove conditional code related to git earlier than 2.22

This commit is contained in:
Stefan Haller
2025-03-31 15:57:58 +02:00
parent 765168b9d7
commit 82e1caa166
8 changed files with 4 additions and 29 deletions

View File

@ -29,11 +29,7 @@ var Enter = NewIntegrationTest(NewIntegrationTestArgs{
t.Views().Status().Content(Contains("repo"))
}
assertInSubmodule := func() {
if t.Git().Version().IsAtLeast(2, 22, 0) {
t.Views().Status().Content(Contains("my_submodule_path(my_submodule_name)"))
} else {
t.Views().Status().Content(Contains("my_submodule_path"))
}
t.Views().Status().Content(Contains("my_submodule_path(my_submodule_name)"))
}
assertInParentRepo()