/
githubmirror
/
lazygit
Обзор
Документация
Войти
/
githubmirror
/
lazygit
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/integration/tests/config/negative_refspec.go
24 строки
663 B
Stefan Haller
Remove obsolete git version restrictions
09 июл 2025, 13:18
09 июл 2025, 13:18
93c5849
Код
Авторство
О чём код?
package config import ( "github.com/jesseduffield/lazygit/pkg/config" . "github.com/jesseduffield/lazygit/pkg/integration/components" ) var NegativeRefspec = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Having a config with a negative refspec", ExtraCmdArgs: []string{}, SetupRepo: func(shell *Shell) { shell. SetConfig("remote.origin.fetch", "^refs/heads/test"). CreateNCommits(2) }, SetupConfig: func(cfg *config.AppConfig) {}, Run: func(t *TestDriver, keys config.KeybindingConfig) { // the failure case with an unpatched go-git is that no branches display t.Views().Branches(). Lines( Contains("master"), ) }, })