@@ -39,7 +39,7 @@ func TestGetReflogCommits(t *testing.T) {
39
39
{
40
40
testName : "no reflog entries" ,
41
41
runner : oscommands .NewFakeRunner (t ).
42
- ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--abbrev=40" , "-- format=%h %x00%ct%x00%gs%x00%P" }, "" , nil ),
42
+ ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--format=%H %x00%ct%x00%gs%x00%P" }, "" , nil ),
43
43
44
44
lastReflogCommit : nil ,
45
45
expectedCommitOpts : []models.NewCommitOpts {},
@@ -49,7 +49,7 @@ func TestGetReflogCommits(t *testing.T) {
49
49
{
50
50
testName : "some reflog entries" ,
51
51
runner : oscommands .NewFakeRunner (t ).
52
- ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--abbrev=40" , "-- format=%h %x00%ct%x00%gs%x00%P" }, reflogOutput , nil ),
52
+ ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--format=%H %x00%ct%x00%gs%x00%P" }, reflogOutput , nil ),
53
53
54
54
lastReflogCommit : nil ,
55
55
expectedCommitOpts : []models.NewCommitOpts {
@@ -95,7 +95,7 @@ func TestGetReflogCommits(t *testing.T) {
95
95
{
96
96
testName : "some reflog entries where last commit is given" ,
97
97
runner : oscommands .NewFakeRunner (t ).
98
- ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--abbrev=40" , "-- format=%h %x00%ct%x00%gs%x00%P" }, reflogOutput , nil ),
98
+ ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--format=%H %x00%ct%x00%gs%x00%P" }, reflogOutput , nil ),
99
99
100
100
lastReflogCommit : models .NewCommit (hashPool , models.NewCommitOpts {
101
101
Hash : "c3c4b66b64c97ffeecde" ,
@@ -119,7 +119,7 @@ func TestGetReflogCommits(t *testing.T) {
119
119
{
120
120
testName : "when passing filterPath" ,
121
121
runner : oscommands .NewFakeRunner (t ).
122
- ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--abbrev=40" , "-- format=%h %x00%ct%x00%gs%x00%P" , "--follow" , "--" , "path" }, reflogOutput , nil ),
122
+ ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--format=%H %x00%ct%x00%gs%x00%P" , "--follow" , "--" , "path" }, reflogOutput , nil ),
123
123
124
124
lastReflogCommit : models .NewCommit (hashPool , models.NewCommitOpts {
125
125
Hash : "c3c4b66b64c97ffeecde" ,
@@ -144,7 +144,7 @@ func TestGetReflogCommits(t *testing.T) {
144
144
{
145
145
testName : "when passing filterAuthor" ,
146
146
runner : oscommands .NewFakeRunner (t ).
147
- ExpectGitArgs ([]
string {
"-c" ,
"log.showSignature=false" ,
"log" ,
"-g" ,
"--abbrev=40" , "-- format=%h %x00%ct%x00%gs%x00%P",
"--author=John Doe <[email protected] >" },
reflogOutput ,
nil ),
147
+ ExpectGitArgs ([]
string {
"-c" ,
"log.showSignature=false" ,
"log" ,
"-g" ,
"--format=%H %x00%ct%x00%gs%x00%P" ,
"--author=John Doe <[email protected] >" },
reflogOutput ,
nil ),
148
148
149
149
lastReflogCommit : models .NewCommit (hashPool , models.NewCommitOpts {
150
150
Hash : "c3c4b66b64c97ffeecde" ,
@@ -169,7 +169,7 @@ func TestGetReflogCommits(t *testing.T) {
169
169
{
170
170
testName : "when command returns error" ,
171
171
runner : oscommands .NewFakeRunner (t ).
172
- ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--abbrev=40" , "-- format=%h %x00%ct%x00%gs%x00%P" }, "" , errors .New ("haha" )),
172
+ ExpectGitArgs ([]string {"-c" , "log.showSignature=false" , "log" , "-g" , "--format=%H %x00%ct%x00%gs%x00%P" }, "" , errors .New ("haha" )),
173
173
174
174
lastReflogCommit : nil ,
175
175
filterPath : "" ,
0 commit comments