File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ package config
2
+
3
+ import (
4
+ "github.com/jesseduffield/lazygit/pkg/config"
5
+ . "github.com/jesseduffield/lazygit/pkg/integration/components"
6
+ )
7
+
8
+ var NegativeRefspec = NewIntegrationTest (NewIntegrationTestArgs {
9
+ Description : "Having a config with a negative refspec" ,
10
+ ExtraCmdArgs : []string {},
11
+ GitVersion : AtLeast ("2.29.0" ),
12
+ SetupRepo : func (shell * Shell ) {
13
+ shell .
14
+ SetConfig ("remote.origin.fetch" , "^refs/heads/test" ).
15
+ CreateNCommits (2 )
16
+ },
17
+ SetupConfig : func (cfg * config.AppConfig ) {},
18
+ Run : func (t * TestDriver , keys config.KeybindingConfig ) {
19
+ // the failure case with an unpatched go-git is that no branches display
20
+ t .Views ().Branches ().
21
+ Lines (
22
+ Contains ("master" ),
23
+ )
24
+ },
25
+ })
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ var tests = []*components.IntegrationTest{
130
130
commit .StagedWithoutHooks ,
131
131
commit .Unstaged ,
132
132
config .CustomCommandsInPerRepoConfig ,
133
+ config .NegativeRefspec ,
133
134
config .RemoteNamedStar ,
134
135
conflicts .Filter ,
135
136
conflicts .ResolveExternally ,
You can’t perform that action at this time.
0 commit comments